-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtabmap_ros 0.16 build error #227
Comments
Is PCL built from source? which full version? Here is a similar post: http://official-rtab-map-forum.206.s1.nabble.com/Compiling-in-ROS-Indigo-with-PCL-1-7-2-Undefined-reference-to-tp386p397.html |
@matlabbe Thank you. I fix the problem by add find_package(PCL REQUIRED) in CMakeLists.txt
|
You have two versions of PCL, depending on the order of paths in PATH or LD_LIBRARY_PATH, the wrong library could be used on runtime and cause a seg fault. In your case, the right libraries seem taken on runtime, so rtabmap is not crashing. Normally, you should not have to add "find_package(PCL REQUIRED)" to rtabmap_ros CMakeLists.txt. rtabmap_ros depends already on pcl_ros, which will set the PCL link libraries to rtabmap_ros. As you have two PCL installed, you have to build pcl_ros from source so that it is linked to PCL in /usr/local instead of the default binaries. Uninstall PCL binaries. This will remove a couple of ROS packages depending on it, so you will have to rebuild them from source in your catkin workspace so that they are correctly linked to PCL built from source. |
when I try to build rtabmap_ros after successfully compiled rtabmap, termial show errors like:
I have install ros-indigo, pcl-1.7, qt 4.8.6 and vtk 6.3.0
The text was updated successfully, but these errors were encountered: