-
Notifications
You must be signed in to change notification settings - Fork 25
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
-fPIC compile error #35
Comments
I've submitted a PR (#36) which adds the missing flag and fixes the compile error. |
I think that's because the I had issues similar to this error when I was refactoring this package last year. At the time my "solution" was to keep linking
A possible explanation is that something changed in your version of PCL and it no longer exposes the |
Also, this is tangentially related to #13. CMake adds the |
My CMake knowledge is limited, but it seems the nvcc compiler (and therefore the CUDA_NVCC_FLAGS) is only used for the CUDA files. As the
I saw that comment indeed but was unsure how this fixed the problem then. PCL not being consistent may actually be the cause of this change in compile behavior.
I recently installed PCL 1.9 (for Noether) which can indeed be the reason this is now causing compile errors. I just tried commenting out the |
On my system, I ran into the following error when compiling:
I'm not sure what caused this, as I've successfully compiled the library in the past. Perhaps a new version of CMake or other libraries involved changed something?
Anyway, going through the generated CMake files I saw that the
-fPIC
flag was only added during the compiling of the.cu
CUDA files and not for the regular.cpp
files while creating thelibyak
library which in turn caused the error shown above.The text was updated successfully, but these errors were encountered: