-
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
nvcc fatal : Unknown option 'fPIC' #1753
Comments
@yyspyysp |
No. I have tried some online methods but still no solution, what is the problem you are experiencing?
尹一帆
***@***.***
…------------------ 原始邮件 ------------------
发件人: "colmap/colmap" ***@***.***>;
发送时间: 2023年1月11日(星期三) 下午4:39
***@***.***>;
***@***.******@***.***>;
主题: Re: [colmap/colmap] nvcc fatal : Unknown option 'fPIC' (Issue #1753)
@yyspyysp
Hi, I got the same problem with you. Do you solve this problem?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@ahojnnes hello, could you give some suggestions to fix this error? Thanks! |
Hi, I am facing the same issue as well. Can the -fPIC flag be removed from CMakeLists.txt? |
Which version of CUDA/GCC are you using to compile colmap? |
CUDA: Cuda compilation tools, release 10.1, V10.1.243 |
P.S: I tried removing the -fPIC flag, and it compiled all the way to 93%, (sift_gpu compiles as well), but then it crashes with errors arising here:
|
hi, do you know how to remove -fPIC flag now? |
You can comment it out in CMakeLists.txt |
I solve it by update cmake version to 3.25.X |
@cheylong i update cmake to 3.25.2,but i still have this error |
@ahojnnes i update cmake to 3.25.2,but i still have this error |
i have the same error with cmake 3.25 and 3.16 |
I have the same problem with cmake 3.25.2 |
I have the same problem with cmake 3.16.3 and Cuda 11.7 |
您好,您的邮件我已经收到了,谢谢
|
I have the same problem,Do you solve this problem now? |
I solve it by update CUDA version to 11.3 |
I have the same problem with cmake 3.25.2 |
I solve this by installing cmake 3.26.3. |
您好,您的邮件我已经收到了,谢谢
|
i solve this issue by update cuda version to 11.3 environment : ubuntu18.04 cuda11.3 gcc7.5.9 cmake3.26.4
i hope it can help you. |
您好,您的邮件我已经收到了,谢谢
|
This worked for me as well, thx!! |
您好,您的邮件我已经收到了,谢谢
|
This might help: #2022 |
When I use make command I get this error
[ 90%] Building CXX object src/CMakeFiles/colmap.dir/colmap_autogen/UYX5XTB5RZ/qrc_resources.cpp.o [ 90%] Linking CXX static library libcolmap.a [ 90%] Built target colmap [ 90%] Building CUDA object src/CMakeFiles/colmap_cuda.dir/mvs/gpu_mat_prng.cu.o nvcc fatal : Unknown option 'fPIC' make[2]: *** [src/CMakeFiles/colmap_cuda.dir/mvs/gpu_mat_prng.cu.o] Error 1 make[1]: *** [src/CMakeFiles/colmap_cuda.dir/all] Error 2 make: *** [all] Error 2
How can I fix this error?Thanks
The text was updated successfully, but these errors were encountered: