problem with insatallation of rtabmap_ros

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

problem with insatallation of rtabmap_ros

aziz
Hello everyone, when i try to install rtabmp following readme.md of https://github.com/introlab/rtabmap_ros/tree/noetic-devel for the last step when i try catkin_make -j4 command this error appears
[ 82%] Linking CXX executable /home/aziz/catkin_ws/devel/lib/rtabmap_demos/wifi_signal_sub
[ 82%] Linking CXX executable /home/aziz/catkin_ws/devel/lib/rtabmap_demos/save_objects_example
[ 82%] Linking CXX executable /home/aziz/catkin_ws/devel/lib/rtabmap_examples/external_loop_detection_example
/usr/bin/ld: /opt/ros/noetic/lib/x86_64-linux-gnu/librtabmap_core.so.0.21.1: undefined reference to `octomath::Pose6D::Pose6D(octomath::Pose6D const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [rtabmap_ros/rtabmap_demos/CMakeFiles/rtabmap_wifi_signal_pub.dir/build.make:352: /home/aziz/catkin_ws/devel/lib/rtabmap_demos/wifi_signal_pub] Error 1
make[1]: *** [CMakeFiles/Makefile2:8570: rtabmap_ros/rtabmap_demos/CMakeFiles/rtabmap_wifi_signal_pub.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: /opt/ros/noetic/lib/x86_64-linux-gnu/librtabmap_core.so.0.21.1: undefined reference to `octomath::Pose6D::Pose6D(octomath::Pose6D const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [rtabmap_ros/rtabmap_demos/CMakeFiles/rtabmap_wifi_signal_sub.dir/build.make:352: /home/aziz/catkin_ws/devel/lib/rtabmap_demos/wifi_signal_sub] Error 1
make[1]: *** [CMakeFiles/Makefile2:8624: rtabmap_ros/rtabmap_demos/CMakeFiles/rtabmap_wifi_signal_sub.dir/all] Error 2
/usr/bin/ld: /opt/ros/noetic/lib/x86_64-linux-gnu/librtabmap_core.so.0.21.1: undefined reference to `octomath::Pose6D::Pose6D(octomath::Pose6D const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [rtabmap_ros/rtabmap_examples/CMakeFiles/rtabmap_external_loop_detection_example.dir/build.make:352: /home/aziz/catkin_ws/devel/lib/rtabmap_examples/external_loop_detection_example] Error 1
make[1]: *** [CMakeFiles/Makefile2:8678: rtabmap_ros/rtabmap_examples/CMakeFiles/rtabmap_external_loop_detection_example.dir/all] Error 2
/usr/bin/ld: /opt/ros/noetic/lib/x86_64-linux-gnu/librtabmap_core.so.0.21.1: undefined reference to `octomath::Pose6D::Pose6D(octomath::Pose6D const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [rtabmap_ros/rtabmap_demos/CMakeFiles/rtabmap_save_objects_example.dir/build.make:559: /home/aziz/catkin_ws/devel/lib/rtabmap_demos/save_objects_example] Error 1
make[1]: *** [CMakeFiles/Makefile2:8651: rtabmap_ros/rtabmap_demos/CMakeFiles/rtabmap_save_objects_example.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j4" failed
Reply | Threaded
Open this post in threaded view
|

Re: problem with insatallation of rtabmap_ros

matlabbe
Administrator
You may have missed that step:
sudo apt remove ros-$ROS_DISTRO-rtabmap ros-$ROS_DISTRO-rtabmap-ros

your rtabmap_ros is linking to rtabmap binaries, not the one from source.
Reply | Threaded
Open this post in threaded view
|

Re: problem with insatallation of rtabmap_ros

aziz
thank you, i have repeated the installation process including that step but the error persists
Reply | Threaded
Open this post in threaded view
|

Re: problem with insatallation of rtabmap_ros

aziz
maybe i didn't uninstall the package properly, can you help to completely uninstall it ? thanks
Reply | Threaded
Open this post in threaded view
|

Re: problem with insatallation of rtabmap_ros

matlabbe
Administrator
The error is still referring to " /opt/ros/noetic/lib/x86_64-linux-gnu/..." prefix?

This:
sudo apt remove ros-$ROS_DISTRO-rtabmap*
should remove all rtabmap references under "/opt/ros/noetic/lib/x86_64-linux-gnu"