Error string: Could not load library

 启动Rivz时,报错:

Error string: Could not load library (Poco exception = libg2o_csparse_extension.so.0.1: cannot open shared object file: No such file or directory)

[ERROR] [1696572310.529059051]: Failed to load nodelet [/radar_graph_slam_nodelet] of type [radar_graph_slam/RadarGraphSlamNodelet] even after refreshing the cache: Failed to load library /home/guo/Downloads/1/catkin_ws/devel/lib//libradar_graph_slam_nodelet.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 (Poco exception = libg2o_csparse_extension.so.0.1: cannot open shared object file: No such file or directory)
[ERROR] [1696572310.529116917]: The error before refreshing the cache was: Failed to load library /home/guo/Downloads/1/catkin_ws/devel/lib//libradar_graph_slam_nodelet.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 (Poco exception = libg2o_csparse_extension.so.0.1: cannot open shared object file: No such file or directory)
[FATAL] [1696572310.529290459]: Failed to load nodelet '/radar_graph_slam_nodelet` of type `radar_graph_slam/RadarGraphSlamNodelet` to manager `radarslam_nodelet_manager'

 

 解决方法:

打开:

sudo gedit /etc/ld.so.conf

 添加:

/usr/local/lib

运行:

sudo ldconfig 

你可能感兴趣的:(QT,Creator+PCL问题解决,人工智能,ROS,g2o)