Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libglog.so link error when running the roslaunch #46

Closed
Pedrous opened this issue Jun 27, 2018 · 1 comment
Closed

libglog.so link error when running the roslaunch #46

Pedrous opened this issue Jun 27, 2018 · 1 comment

Comments

@Pedrous
Copy link

Pedrous commented Jun 27, 2018

I first had some libraries missing when building and I was able to solve that by following the solution suggested here #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_PT_SB

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_PT_SB_

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.

@Pedrous
Copy link
Author

Pedrous commented Jun 28, 2018

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.

@Pedrous Pedrous closed this as completed Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant