ratslam catkin_make failed??

asked 2019-02-22 18:45:47 -0600

sunt40 gravatar image

updated 2019-02-23 01:45:27 -0600

gvdhoorn gravatar image

Recently I need to run the Openratslam,but my catkin_kin was failed.Could you please give me any help?Thank you very much! My software version is : ubuntu16.04 ROS kinetic Opencv 3.4 The catkin_make fault is as follows:

home/sunt/catkin_ws/devel/lib/libratslam.so:对‘cv::String::deallocate()’未定义的引用

collect2: error: ld returned 1 exit status

ratslam_ros/CMakeFiles/ratslam_pc.dir/build.make:132: recipe for target '/home/sunt/catkin_ws/devel/lib/ratslam_ros/ratslam_pc' failed

make[2]: * [/home/sunt/catkin_ws/devel/lib/ratslam_ros/ratslam_pc] Error 1

CMakeFiles/Makefile2:494: recipe for target 'ratslam_ros/CMakeFiles/ratslam_pc.dir/all' failed

make[1]: * [ratslam_ros/CMakeFiles/ratslam_pc.dir/all] Error 2

make[1]: * 正在等待未完成的任务....

/home/sunt/catkin_ws/devel/lib/libratslam.so:对‘cv::String::deallocate()’未定义的引用

collect2: error: ld returned 1 exit status

ratslam_ros/CMakeFiles/ratslam_em.dir/build.make:132: recipe for target '/home/sunt/catkin_ws/devel/lib/ratslam_ros/ratslam_em' failed

make[2]: * [/home/sunt/catkin_ws/devel/lib/ratslam_ros/ratslam_em] Error 1

CMakeFiles/Makefile2:1588: recipe for target 'ratslam_ros/CMakeFiles/ratslam_em.dir/all' failed

make[1]: * [ratslam_ros/CMakeFiles/ratslam_em.dir/all] Error 2

Makefile:138: recipe for target 'all' failed

make: * [all] Error 2

Invoking "make -j8 -l8" failed
edit retag flag offensive close merge delete

Comments

There seems to be a linker error. Please edit your question and post the relevant CMakeLists.txt, or, if available, the link where you got this code from.

mgruhler gravatar imagemgruhler ( 2019-02-25 00:35:22 -0600 )edit