-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Missing -fPIC in nvcc host compiler. #186
Comments
Thanks for the feedback. Did you change anything in CMake or why are you building shared library objects? |
I'm using default arch_linux build environment. The problem may relate to CMake=3.8
Another possible cnadidate for forcing
As I can understand, qt is forcing fpic when building with gcc<=5.0, which is current host compiler for cuda on arch. |
Can you check whether adding |
Works here. |
Thanks, fixed in the dev branch now. |
Enconture small problem while building dense_stereo on linux
(arch_linux,gcc_7.1,cmake_3.8.1,cuda_8.0,cuda_host_compiler=gcc5_5.4.0)
linker complains about missing
-fPIC
flag in libmvs.aAdding
--compiler-options -fPIC
toCUDA_NVCC_FLAGS
fixes the issue for me.The text was updated successfully, but these errors were encountered: