ceres-solver / ceres-solver

A large scale non-linear optimization library
http://ceres-solver.org/
Other
3.66k stars 1.01k forks source link

Can't load libceres_solver_plugin.so #1030

Closed immanueln98 closed 4 months ago

immanueln98 commented 6 months ago

I a trying to run the SLAM toolbox on my machine and eeverytome I try launch the toolbox, I get the following terminal output:

[INFO] [launch]: All log files can be found below /home/imanuel/.ros/log/2023-11-17-16-45-12-859740-imanuel-ROG-Zephyrus-G14-GA401IV-GA401IV-26946
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [async_slam_toolbox_node-1]: process started with pid [26947]
[async_slam_toolbox_node-1] [INFO] [1700232313.001574909] [slam_toolbox]: Node using stack size 40000000
[async_slam_toolbox_node-1] [FATAL] [1700232313.018265701] [slam_toolbox]: Failed to create solver_plugins::CeresSolver, is it registered and built? Exception: Failed to load library /opt/ros/humble/lib/libceres_solver_plugin.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library dlopen error: /lib/libceres.so.2: undefined symbol: _ZN6google21kLogSiteUninitializedE, at ./src/shared_library.c:99.
[ERROR] [async_slam_toolbox_node-1]: process has died [pid 26947, exit code 1, cmd '/opt/ros/humble/lib/slam_toolbox/async_slam_toolbox_node --ros-args -r __node:=slam_toolbox --params-file /opt/ros/humble/share/slam_toolbox/config/mapper_params_online_async.yaml --params-file /tmp/launch_params_nfkga44u'].

The ceres solver plugin fails to load for some reason and I can't seem to find a fix.

Computer details Ubuntu 22.04 running ROS2 humble Installed ceres-solver v2.1.0 SLAM version 2.7.2

sergiud commented 5 months ago

Looks like you have updated Ceres Solver dependencies with ABI incompatible changes but did not recompile the library.

sandwichmaker commented 4 months ago

Closing because problem has a probable diagnosis and no further response. Please feel free to re-open if this continues to be a problem and you have further details.