move_basic linker problem Intel Euclid Ubuntu 16.04

asked 2018-03-01 05:47:56 -0600

ChriMo gravatar image

updated 2018-03-01 12:48:53 -0600

Hi, I'm trying to compile move_basic on Intel Euclid with Ubuntu 16.04 (ros kinetic).

During catkin_make process, I get a linker error at obstacle_detector

I've installed all tf2 related libs. Any idea, which library is missing at my system ?

Thanks in advance

Chrimo

Linking CXX executable /intel/euclid/euclid_ws/devel/lib/move_basic/move_basic

CMakeFiles/move_basic.dir/src/obstacle_detector.cpp.o: 
In function ObstacleDetector::range_callback(boost::shared_ptr<sensor_msgs::Range_<std::allocator<void> > const> const&)': obstacle_detector.cpp:(.text+0xd1c): undefined reference tovoid tf2::fromMsg<geometry_msgs::Point_<std::allocator >, tf2::Vector3>(geometry_msgs::Point_<std::allocator > const&, tf2::Vector3&)'

obstacle_detector.cpp:(.text+0xfa4): undefined reference to void tf2::fromMsg<geometry_msgs::Vector3_<std::allocator<void> >, tf2::Vector3>(geometry_msgs::Vector3_<std::allocator<void> > const&, tf2::Vector3&)' obstacle_detector.cpp:(.text+0x102b): undefined reference to void tf2::fromMsg<geometry_msgs::Vector3_<std::allocator >, tf2::Vector3>(geometry_msgs::Vector3_<std::allocator > const&, tf2::Vector3&)'

CMakeFiles/move_basic.dir/src/obstacle_detector.cpp.o: 
In function ObstacleDetector::scan_callback(boost::shared_ptr<sensor_msgs::LaserScan_<std::allocator<void> > const> const&)': obstacle_detector.cpp:(.text+0x188d): undefined reference tovoid tf2::fromMsg<geometry_msgs::Point_<std::allocator >, tf2::Vector3>(geometry_msgs::Point_<std::allocator > const&, tf2::Vector3&)'

obstacle_detector.cpp:(.text+0x1917): undefined reference to `void tf2::fromMsg<geometry_msgs::Vector3_<std::allocator >, tf2::Vector3>(geometry_msgs::Vector3_<std::allocator > const&, tf2::Vector3&)'
collect2: error: ld returned 1 exit status

move_basic/CMakeFiles/move_basic.dir/build.make:348: recipe for target '/intel/euclid/euclid_ws/devel/lib/move_basic/move_basic' failed

make[3]: *** [/intel/euclid/euclid_ws/devel/lib/move_basic/move_basic] Error 1
CMakeFiles/Makefile2:6716: recipe for target 'move_basic/CMakeFiles/move_basic.dir/all' failed

make[2]: *** [move_basic/CMakeFiles/move_basic.dir/all] Error 2
CMakeFiles/Makefile2:6728: recipe for target 'move_basic/CMakeFiles/move_basic.dir/rule' failed

make[1]: *** [move_basic/CMakeFiles/move_basic.dir/rule] Error 2

Makefile:2526: recipe for target 'move_basic' failed
make: *** [move_basic] Error 2
Invoking "make move_basic -j4 -l4" failed
edit retag flag offensive close merge delete

Comments

ahendrix gravatar imageahendrix ( 2018-03-02 14:46:38 -0600 )edit