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

compiling error #16

Open
cucrui opened this issue May 11, 2021 · 0 comments
Open

compiling error #16

cucrui opened this issue May 11, 2021 · 0 comments

Comments

@cucrui
Copy link

cucrui commented May 11, 2021

[ 94%] Building CXX object src/CMakeFiles/saf.dir/utils/output_tracker.cpp.o
[ 97%] Building CXX object src/CMakeFiles/saf.dir/video/gst_video_capture.cpp.o
[ 97%] Building CXX object src/CMakeFiles/saf.dir/video/gst_video_encoder.cpp.o
[ 97%] Building CXX object src/CMakeFiles/saf.dir/saf.pb.cc.o
[100%] Linking CXX shared library libsaf.so
/usr/bin/ld: /usr/local/lib/libboost_filesystem.a(operations.o): relocation R_X86_64_PC32 against symbol `_ZTIN5boost10filesystem16filesystem_errorE' 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/CMakeFiles/saf.dir/build.make:826: recipe for target 'src/libsaf.so' failed
make[2]: *** [src/libsaf.so] Error 1
CMakeFiles/Makefile2:127: recipe for target 'src/CMakeFiles/saf.dir/all' failed
make[1]: *** [src/CMakeFiles/saf.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

I have a question that which version of boost the code use. The error each compilation meet seem that all come from boost. Anyone can give a advice, thanks a lot!

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