Open GiannisSp opened 5 days ago
Maybe it is related to this warning:
/usr/bin/ld: warning: libpcl_io.so.1.14, needed by /usr/local/lib/librtabmap_core.so.0.21.8, may conflict with libpcl_io.so.1.10
As you are rebuilding everything from source, uninstall libpcl and ros-$ROS_DISTRO-pcl before rebuilding rtabmap
RUN apt remove ros-$ROS_DISTRO-pcl* libpcl* -y;
You may need to rebuild pcl_ros from source too in case rtabmap_ros fails to find it.
Thank you for your response.
If I try to remove libpcl*
, it also removes the ros-$ROS_DISTRO-pcl-conversions
and other vital packages. Haven't installed ros-$ROS_DISTRO-pcl
and even if it gets installed silently I can see that the Makefiles target my source build installation
My workaround is to delete the older version libpcl_io.so.1.10
and create a link to libpcl_io.so.1.14
.
It didn't solve the issue.
All source builds up to RTABmap find perfectly each previous builds. That also seem to be the case with RTABmap_ros
it also removes the ros-$ROS_DISTRO-pcl-conversions and other vital packages
Yes, so you have to rebuild them from source.
Haven't installed ros-$ROS_DISTRO-pcl and even if it gets installed silently I can see that the Makefiles target my source build installation
The problem is that even if rtabmap is building against the pcl version built from source, on runtime the wrong library version can be loaded and it will just seg fault. You may verify that with ldd
tool.
From experience, I've found that avoiding having the same libraries with different version installed at the same time saves a lot of issues down the road. Unless you really need latest PCL version, I would stick to the binaries to make your life easier. Note also rebuilding latest PCL on machine using c++17 by default can cause some issues. See https://github.com/introlab/rtabmap/issues/1385#issuecomment-2496318298 to set the right compile flags to avoid issues with GTSAM and g2o libraries using also Eigen library.
EDIT: just re-read original post, PCL-CUDA is not used by RTAB-Map.
I am trying to build rtabmap & rtabmap-ros from source, because I want CUDA support RTAB map docker, that for now I'm testing it on native Ubuntu20.04. As far as rtabmap everything works, without building errors. RTABmap & RTABmap-ros version 0.21.5-noetic VTK version 9.4 ( tried 7.1 too ) PCL version 1.14.1 (without the -march=native flag)(tried down to 1.11) [ can't test 1.10 'cause I don't have the right GPU ] Boost version 1.71 OpenCV version : latest 4.x ROS : Noetic , Ubuntu 20.04 (docker) Tried different GCC/G++ [ v11, v8 ]
Any help would be much appreciated. I've struggled for days on these and past problems Note: I am not planning to use directly WiFi capabilities (if any), so disabling(bypassing) this, may still suffice
Error code : while running
catkin_make -j1
from "catkin_ws" folderDockerfile code
Tried to clean any irrelevant code I hope you can copy-paste without typos from my part