-
Notifications
You must be signed in to change notification settings - Fork 65
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
Failed to load library /opt/ros/humble/lib/liboctomap_rviz_plugins.so #48
Comments
Seeing the same here on multiple systems after an apt upgrade.
|
Workaround LD_PRELOAD=/usr/lib/x86_64-linux-gnu/liboctomap.so ros2 run rviz2 rviz2 |
Signed-off-by: Mike Wake <[email protected]>
Thank you @aosmw . The workaround is working |
Hi there, I have experienced the same issue. Here's my info on it: Info
The ProblemWhen selecting any of the octomap occupancy grid displays (e.g.
So, I figure it doesn't link against the lib in which this symbol is defined; Probably, the main octomap lib. The fix?I managed to fix the problem by adding |
Yes, your fix also works for my setup. Nice! I suspect the I think my fix works because finding octomap populates the |
It works because of ament_auto_find_build_dependencies() at the top of the file. It knows how to read the package.xml and call find_package() on the listed dependencies and constructs targets that can be used in target_link_libraries. Follow this rabbit hole. https://github.com/ament/ament_cmake/blob/4c630d4c36af09e8a426ef5c1fbc8850f656019c/ament_cmake_auto/cmake/ament_auto_find_build_dependencies.cmake |
Thank you for the detailed documentation and fix suggestion. The corresponding PR #49 is merged and a release to Iron, Humble, and Rolling made. Should there be any issues, please feel free to tag me |
Hi, I was using the plugin for rviz that I installed using
apt-get install ros-humble-octomap-rviz-plugins
. It was working until I rebuilt the docker image last week (the previous docker image was over a month old). Now I get a following error:I saw a similar issue here but there it was resolved as there was some update. I did what was mentioned in that issue, but resourcing and reinstalling didn't fix the problem.
Here is response I got from
ldd /opt/ros/humble/lib/liboctomap_rviz_plugins.so
(it was mentioned in that issue to send the information)The text was updated successfully, but these errors were encountered: