Closed Pedrous closed 6 years ago
Problem solved, going to share so if someone benefits from it. The solution was to download libglog.so.0.0.0 from https://fedora.pkgs.org/28/fedora-x86_64/glog-0.3.5-3.fc28.x86_64.rpm.html. Then I copied it to svo_install_ws/install/lib/ and made a link to it from libglog.so.0 by ln -s libglog.so.0 libglog.so.0.0.0
After this I still had a problem with libglog.so.0.3.5 and made a link from it to the same file with ln -s libglog.so.0.3.5 libglog.so.0.0.0
And at some point I also had another problem with libgflags.so.2.1.2 so I made a link for it as well by first typing ln -s libgflags.so.2.1.2 libgflags.so.2.1 in /usr/local/lib/
and then ln -s libgflags.so.2.1 /usr/local/lib/libgflags.so.2.1.2 in svo_install_ws/install/lib/
After this I got it running with the rosbag provided for testing.
I first had some libraries missing when building and I was able to solve that by following the solution suggested here https://github.com/uzh-rpg/rpg_svo_example/issues/23.
Now when I try to run the example mentioned in the end of the installation instructions, I get the following error:
/home/Codes/visual_odometry/SVO2/svo_install_overlay_ws/devel/lib/svo_ros/svo_node: symbol lookup error: /home/Codes/visual_odometry/SVO2/svo_install_ws/install/lib/libglog.so.0: undefined symbol: _ZN6google14FlagRegistererC1INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKcS9_S9_PTSB
So it seems like that this this symbol is undefined in the libglog.so.0 and I confirmed that by running: nm libglog.so.0 | grep ZN6google14FlagRegistererC1INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKcS9_S9_PTSB
ldd libglog.so.0 gives the following output: linux-vdso.so.1 => (0x00007fffba97a000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f18f52a4000) libgflags.so.2.2 => /usr/local/lib/libgflags.so.2.2 (0x00007f18f506d000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f18f4ceb000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f18f4ad5000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f18f470b000) /lib64/ld-linux-x86-64.so.2 (0x00007f18f56fe000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f18f4402000)
I don't know at the moment how to solve this issue, so if someone has faced the same problem and has a solution or some tips to point me to the right direction, that would be greatly appreciated. Thank you. If there is some more information needed, I can provide that.