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

pcl-ros compilation issue: undefined reference to 'boost::system::generic_category()'

asked 2012-08-19 23:42:36 -0500

swagatika gravatar image

updated 2012-08-19 23:50:42 -0500

. Hi, I am trying to install ROS with PCL and compile it in ubuntu 11.10.

$svn info

Path: . URL: https://svn.pointclouds.org/ros/trunk/perception_pcl_electric_unstable Repository Root: https://svn.pointclouds.org/ros Repository UUID: 96ee21a3-c2b3-4322-a94e-acd7bc47b802 Revision: 265 Node Kind: directory Schedule: normal Last Changed Author: atrevor Last Changed Rev: 253 Last Changed Date: 2012-04-06 04:27:41 +0530 (Fri, 06 Apr 2012)

$rosmake perception_pcl_electric_unstable make[3]: Entering directory /home/swagatika/Documents/Robotic_Vision/codes/ros_workspace/perception_pcl_electric_unstable/pcl_ros/build' [ 16%] Built target pcl_ros_tf Linking CXX executable ../../../bin/pcd_to_pointcloud make[3]: Entering directory/home/swagatika/Documents/Robotic_Vision/codes/ros_workspace/perception_pcl_electric_unstable/pcl_ros/build' make[3]: Leaving directory /home/swagatika/Documents/Robotic_Vision/codes/ros_workspace/perception_pcl_electric_unstable/pcl_ros/build' make[3]: Entering directory/home/swagatika/Documents/Robotic_Vision/codes/ros_workspace/perception_pcl_electric_unstable/pcl_ros/build' Linking CXX executable ../../../bin/pointcloud_to_pcd /usr/include/boost/system/error_code.hpp:214: error: undefined reference to 'boost::system::generic_category()' /usr/include/boost/system/error_code.hpp:215: error: undefined reference to 'boost::system::generic_category()' /usr/include/boost/system/error_code.hpp:216: error: undefined reference to 'boost::system::system_category()' collect2: ld returned 1 exit status make[3]: * [../bin/convert_pointcloud_to_image] Error 1 make[3]: Leaving directory /home/swagatika/Documents/Robotic_Vision/codes/ros_workspace/perception_pcl_electric_unstable/pcl_ros/build' make[2]: *** [src/tools/CMakeFiles/convert_pointcloud_to_image.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs.... /usr/include/boost/system/error_code.hpp:214: error: undefined reference to 'boost::system::generic_category()' /usr/include/boost/system/error_code.hpp:215: error: undefined reference to 'boost::system::generic_category()' /usr/include/boost/system/error_code.hpp:216: error: undefined reference to 'boost::system::system_category()' collect2: ld returned 1 exit status make[3]: *** [../bin/pointcloud_to_pcd] Error 1 make[3]: Leaving directory/home/swagatika/Documents/Robotic_Vision/codes/ros_workspace/perception_pcl_electric_unstable/pcl_ros/build' make[2]: [src/tools/CMakeFiles/pointcloud_to_pcd.dir/all] Error 2 /usr/include/boost/system/error_code.hpp:214: error: undefined reference to 'boost::system::generic_category()' /usr/include/boost/system/error_code.hpp:215: error: undefined reference to 'boost::system::generic_category()' /usr/include/boost/system/error_code.hpp:216: error: undefined reference to 'boost::system::system_category()' collect2: ld returned 1 exit status make[3]: [../bin/pcd_to_pointcloud] Error 1 make[3]: Leaving directory /home/swagatika/Documents/Robotic_Vision/codes/ros_workspace/perception_pcl_electric_unstable/pcl_ros/build' make[2]: *** [src/tools/CMakeFiles/pcd_to_pointcloud.dir/all] Error 2 /usr/include/boost/system/error_code.hpp:214: error: undefined reference to 'boost::system::generic_category()' /usr/include/boost/system/error_code.hpp:215: error: undefined reference to 'boost::system::generic_category()' /usr/include/boost/system/error_code.hpp:216: error: undefined reference to 'boost::system::system_category()' collect2: ld returned 1 exit status make[3]: *** [../bin/convert_pcd_to_image] Error 1 make[3]: Leaving directory/home/swagatika/Documents/Robotic_Vision/codes/ros_workspace/perception_pcl_electric_unstable/pcl_ros/build' make[2]: * [src/tools/CMakeFiles/convert_pcd_to_image.dir/all] Error 2 make[2]: Leaving directory /home/swagatika/Documents/Robotic_Vision/codes/ros_workspace/perception_pcl_electric_unstable/pcl_ros/build' make[1]: *** [all] Error 2 make[1]: Leaving directory/home/swagatika/Documents/Robotic_Vision/codes/ros_workspace/perception_pcl_electric_unstable/pcl_ros/build' -------------------------------------------------------------------------------} [ rosmake ] Output from build of package pcl_ros written to: [ rosmake ] /home/swagatika/.ros/rosmake/rosmake_output-20120819-234013/pcl_ros/build_output.log [rosmake-0] Finished <<< pcl_ros [FAIL] [ 6 ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-08-20 09:10:07 -0500

Hi,

It seems that the issue is with the linker which is not able to link your project to the boost directories. A quick and simple edit in your CMakelists.txt should enable the linking of the necessary boost directories.

You might have to uncomment the following line in Cmakelists:

rosbuild_add_boost_directories()

Next you will also have to add the following line:

rosbuild_link_boost(Binary_File_Name signals)

rosbuild_link_boost(Binary_File_Name systems)

Binary_File_Name is the name of the executable and the above lines have to be added after the rosbuild_add_executable() line. In most cases your rosmake should work fine after these corrections. You may search your error in Google for more information on this.

Good luck.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-08-19 23:42:36 -0500

Seen: 1,811 times

Last updated: Aug 20 '12