Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

link error #22

Closed
qixuxiang opened this issue May 25, 2019 · 1 comment
Closed

link error #22

qixuxiang opened this issue May 25, 2019 · 1 comment

Comments

@qixuxiang
Copy link

Thanks for your awesome code share!

I want to run this code in my vmware workstation Ubuntu 18.04, my software details are:

GCC 5.5
Eigen 3.3.7
OpenCV 3.4.1

I compile g2o, yaml-cpp and Pangolin and your dbow2 with lateset github code and install them, but when I compile the openvslam, I got errors like these:

[ 73%] Building CXX object src/openvslam/CMakeFiles/openvslam.dir/util/random_array.cc.o
[ 74%] Linking CXX shared library ../../lib/libopenvslam.so
/usr/bin/ld: /usr/local/lib/libyaml-cpp.a(exceptions.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN4YAML9ExceptionE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
src/openvslam/CMakeFiles/openvslam.dir/build.make:1792: recipe for target 'lib/libopenvslam.so' failed
make[2]: *** [lib/libopenvslam.so] Error 1
CMakeFiles/Makefile2:106: recipe for target 'src/openvslam/CMakeFiles/openvslam.dir/all' failed
make[1]: *** [src/openvslam/CMakeFiles/openvslam.dir/all] Error 2
Makefile:83: recipe for target 'all' failed

Would you please give me some advice? Thanks a lot!

@qixuxiang
Copy link
Author

That is a problem of yaml-cpp, not openvslam, I solved it by #682

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant