XiaoBaiiiiii / colmap-pcd

Image-to-point cloud Registration Tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail to compile

OGentle opened this issue · comments

commented

Describe the bug
When I tried
make -j
An error occurred ,

nvcc fatal   : Unknown option '-fPIC'
nvcc fatal   : Unknown option '-fPIC'
nvcc fatal   : Unknown option '-fPIC'
make[2]: *** [src/CMakeFiles/colmap_cuda.dir/build.make:76: src/CMakeFiles/colmap_cuda.dir/mvs/gpu_mat_ref_image.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [src/CMakeFiles/colmap_cuda.dir/build.make:63: src/CMakeFiles/colmap_cuda.dir/mvs/gpu_mat_prng.cu.o] Error 1
make[2]: *** [src/CMakeFiles/colmap_cuda.dir/build.make:102: src/CMakeFiles/colmap_cuda.dir/mvs/patch_match_cuda.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:682: src/CMakeFiles/colmap_cuda.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

What should I do to fix this problem?

Environment:

  • OS: Ubuntu 20.04
  • CUDA_version : 11.6

Hi. I'm getting a similar error. Were you able to resolve this ?