Closed ankurjay closed 3 years ago
It seems you are missing a library that should come with g2o. I do not know how to solve this. Do you have libg2o_ext_freeglut_minimal.so in your system?
I have the same problem.
But I have make sure that there's libg2o_ext_freeglut_minimal.so file in my system. By using
ldconfig -v | grep "g2o"
I can find it.
libg2o_solver_cholmod.so -> libg2o_solver_cholmod.so
libg2o_csparse_extension.so -> libg2o_csparse_extension.so
libg2o_types_slam2d_addons.so -> libg2o_types_slam2d_addons.so
libg2o_types_icp.so -> libg2o_types_icp.so
libg2o_opengl_helper.so -> libg2o_opengl_helper.so
libg2o_solver_slam2d_linear.so -> libg2o_solver_slam2d_linear.so
libg2o_cli.so -> libg2o_cli.so
libg2o_solver_eigen.so -> libg2o_solver_eigen.so
libg2o_types_slam2d.so -> libg2o_types_slam2d.so
libg2o_types_slam3d_addons.so -> libg2o_types_slam3d_addons.so
libg2o_solver_pcg.so -> libg2o_solver_pcg.so
libg2o_types_slam3d.so -> libg2o_types_slam3d.so
libg2o_core.so -> libg2o_core.so
libg2o_types_sim3.so -> libg2o_types_sim3.so
libg2o_solver_structure_only.so -> libg2o_solver_structure_only.so
libg2o_ext_freeglut_minimal.so -> libg2o_ext_freeglut_minimal.so
libg2o_stuff.so -> libg2o_stuff.so
libg2o_solver_csparse.so -> libg2o_solver_csparse.so
libg2o_solver_dense.so -> libg2o_solver_dense.so
libg2o_types_sclam2d.so -> libg2o_types_sclam2d.so
libg2o_types_sba.so -> libg2o_types_sba.so
libg2o_types_data.so -> libg2o_types_data.so
But it still report the error ~Code/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam: error while loading shared libraries: libg2o_ext_freeglut_minimal.so: cannot open shared object file: No such file or directory
REQUIRED process [rgbdslam-2] has died! process has died [pid 19169, exit code 127, cmd /home/changshanshi/Code/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam name:=rgbdslam log:=/home/changshanshi/.ros/log/8c85926c-b8c1-11eb-afea-6807157e95b4/rgbdslam-2.log]. log file: /home/changshanshi/.ros/log/8c85926c-b8c1-11eb-afea-6807157e95b4/rgbdslam-2*.log Initiating shutdown!
I have solve it.
sudo ldconfig
to make it working
I am trying to launch the package while my gazebo simulation (that has some robots with kinects) in it. However, the following message appears and everything shuts down:
If I launch the package without running my gazebo simulation, the error still persists. What can I do to resolve this?