ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Building pcl on OSX

asked 2013-02-01 20:57:59 -0600

J.M.T. gravatar image

Hello,

i followed @Kevin's post on the Rososx-mailinglist to compile pcl

  1. I saved the package.xml from pcl then deleted the pcl package
  2. grabbed the latest pcl via svn co http://svn.pointclouds.org/pcl/trunk
  3. Added the modified CMakeLists.txt, pcl_find_ros.cmake and the old package.xml to the pcl folder

However building fails due to

 13%] Building CXX object io/tools/ply/CMakeFiles/pcl_plyheader.dir/plyheader.cpp.o
In file included from /Users/tatsch/ros_catkin_ws/src/pcl/io/src/image_grabber.cpp:47:
In file included from /usr/local/include/vtk-5.10/vtkImageReader2.h:41:
In file included from /usr/local/include/vtk-5.10/vtkImageAlgorithm.h:28:
In file included from /usr/local/include/vtk-5.10/vtkAlgorithm.h:32:
In file included from /usr/local/include/vtk-5.10/vtkObject.h:41:
In file included from /usr/local/include/vtk-5.10/vtkObjectBase.h:43:
In file included from /usr/local/include/vtk-5.10/vtkIndent.h:24:
In file included from /usr/local/include/vtk-5.10/vtkSystemIncludes.h:40:
In file included from /usr/local/include/vtk-5.10/vtkIOStream.h:108:
In file included from /usr/include/c++/4.2.1/backward/strstream:51:
/usr/include/c++/4.2.1/backward/backward_warning.h:32:2: warning: This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated. [-W#warnings]
#warning This file includes at least one deprecated or antiquated header. \
 ^
Linking CXX executable ../../../bin/pcl_plyheader
[ 13%] Built target pcl_plyheader
[ 13%] Building CXX object io/CMakeFiles/pcl_io.dir/src/hdl_grabber.cpp.o
/Users/tatsch/ros_catkin_ws/src/pcl/io/src/image_grabber.cpp:628:32: error: no viable overloaded '='
      cloud_color.header.stamp = timestamp;
      ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~
/Users/tatsch/ros_catkin_ws/install_isolated/include/ros/time.h:169:22: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'uint64_t' (aka 'unsigned long long') to 'const ros::Time' for 1st argument
  class ROSTIME_DECL Time : public TimeBase<Time, Duration>
                     ^
/Users/tatsch/ros_catkin_ws/src/pcl/io/src/image_grabber.cpp:664:26: error: no viable overloaded '='
      cloud.header.stamp = timestamp;
      ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~
/Users/tatsch/ros_catkin_ws/install_isolated/include/ros/time.h:169:22: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'uint64_t' (aka 'unsigned long long') to 'const ros::Time' for 1st argument
  class ROSTIME_DECL Time : public TimeBase<Time, Duration>
                     ^
/Users/tatsch/ros_catkin_ws/src/pcl/io/src/image_grabber.cpp:745:32: error: no viable overloaded '='
      cloud_color.header.stamp = timestamp;
      ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~
/Users/tatsch/ros_catkin_ws/install_isolated/include/ros/time.h:169:22: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'uint64_t' (aka 'unsigned long long') to 'const ros::Time' for 1st argument
  class ROSTIME_DECL Time : public TimeBase<Time, Duration>
                     ^
/Users/tatsch/ros_catkin_ws/src/pcl/io/src/image_grabber.cpp:787:26: error: no viable overloaded '='
      cloud ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-02-02 03:45:05 -0600

Hansg91 gravatar image

Check the pcl_find_ros.cmake, I'm guessing you will see somewhere :

option(USE_ROS "Integrate with ROS rather than using native files" OFF)

Set the OFF to ON and it will tell PCL to use ROS.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-01 20:57:59 -0600

Seen: 493 times

Last updated: Feb 02 '13