UZ-SLAMLab / ORB_SLAM3

ORB-SLAM3: An Accurate Open-Source Library for Visual, Visual-Inertial and Multi-Map SLAM
GNU General Public License v3.0
6.39k stars 2.51k forks source link

libpango_windowing.so #399

Closed NhlalalaDylan closed 2 years ago

NhlalalaDylan commented 2 years ago

when I run : ./Examples/Monocular/mono_euroc ./Vocabulary/ORBvoc.txt ./Examples/Monocular/EuRoC.yaml ~/Datasets/EuRoc/MH01 ./Examples/Monocular/EuRoC_TimeStamps/MH01.txt dataset-MH01_mono

I get: ./Examples/Monocular/mono_euroc: error while loading shared libraries: libpango_windowing.so: cannot open shared object file: No such file or directory

maghauke commented 2 years ago

sudo ldconfig

NhlalalaDylan commented 2 years ago

Thanks a lot

Mechazo11 commented 2 years ago

@maghauke Thank you very much for providing the solution. I am a novice when it comes to using C++ projects and was wondering what is ldconfig doing in context of ORB-SLAM3?

AllenIsaacJose commented 6 months ago

@maghauke Thank you very much for providing the solution. I am a novice when it comes to using C++ projects and was wondering what is ldconfig doing in context of ORB-SLAM3?

After installing Pangolin libraries, it's a good idea to update the library cache using this command. Pangolin is the visualizing library used in ORB-SLAM 1, 2, and 3.

jiyooonp commented 4 months ago

Hello, I tried to run the command, but it is still giving me the error. Could someone help me? Thank you.

GLtangzero commented 2 months ago

@jiyooonp Hey, first you need check which *.so document you can't find. Then try to find the path of it. For example I got the error like: error while loading shared libraries: libORB_SLAM3.so: cannot open shared object file: No such file or directory Then I found this .os document in /home/user/ORBSLAM3_ROS2_2/src/ORB_SLAM3/lib, next input export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/ORBSLAM3_ROS2_2/src/ORB_SLAM3/lib in your terminal or just write it in the .bashrc and source ~/.bashrc. It maybe will work, please check it.

Strikerfury22 commented 2 months ago

@jiyooonp Hello, I was having the same problem. Once you have made what @GLtangzero said to declare your $LD_LIBRARY_PATH, execute "sudo ldconfig $LD_LIBRARY_PATH". In that way ldconfig will create the necessary links. In my case, my $LD_LIBRARY_PATH only contained the directory, so no ":" were in it. This is what it contained: "/path/to/my/lib". I hope this helps everyone in our same situation (I just managed to make it right now).