introlab / rtabmap_ros

RTAB-Map's ROS package.
http://wiki.ros.org/rtabmap_ros
BSD 3-Clause "New" or "Revised" License
966 stars 557 forks source link

While build the rtabmap and rtabmap_ros package in Xavier CPU with a galactic version . these error will come every time. Any suggestions ?? #1039

Open sunilbodla opened 1 year ago

sunilbodla commented 1 year ago

/bin/ld: ../../bin/librtabmap_core.so.0.21.2: undefined reference to octomath::Pose6D::Pose6D(octomath::Pose6D const&)' collect2: error: ld returned 1 exit status make[2]: *** [tools/ConsoleApp/CMakeFiles/consoleApp.dir/build.make:216: bin/rtabmap-console] Error 1 make[1]: *** [CMakeFiles/Makefile2:1193: tools/ConsoleApp/CMakeFiles/consoleApp.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /bin/ld: ../../bin/librtabmap_core.so.0.21.2: undefined reference tooctomath::Pose6D::Pose6D(octomath::Pose6D const&)' collect2: error: ld returned 1 exit status make[2]: [tools/Camera/CMakeFiles/camera.dir/build.make:216: bin/rtabmap-camera] Error 1 make[1]: [CMakeFiles/Makefile2:1361: tools/Camera/CMakeFiles/camera.dir/all] Error 2 /bin/ld: ../../bin/librtabmap_core.so.0.21.2: undefined reference to `octomath::Pose6D::Pose6D(octomath::Pose6D const&)' collect2: error: ld returned 1 exit status make[2]: [tools/ExtractObject/CMakeFiles/extractObject.dir/build.make:216: bin/rtabmap-extractObject] Error 1 make[1]: [CMakeFiles/Makefile2:1305: tools/ExtractObject/CMakeFiles/extractObject.dir/all] Error 2 make: *** [Makefile:152: all] Error 2

anath93 commented 1 year ago

Looks like you have issue with octomap library missing, can you check with sudo apt install ros-galactic-octomap, then try to clean workspace and re-build ?

matlabbe commented 8 months ago

Maybe related to https://github.com/introlab/rtabmap_ros/issues/737#issuecomment-1407157456