luigifreda / plvs

PLVS is a real-time SLAM system with points, lines, volumetric mapping and 3D unsupervised incremental segmentation.
GNU General Public License v3.0
453 stars 67 forks source link

libelas-gpu error #20

Closed NITREBZ closed 8 months ago

NITREBZ commented 8 months ago

Hello,Luigi! I'm having trouble compiling Thirdparty. It seems that an error occurred while compiling "libelas-gpu". The error message is as follows:

build files have been written to: /home/plvs-master/Thirdparty/libelas-gpu/build [ 6%] Building NVCC (Device) object CMakeFiles/cuda_compile_1.dir/GPU/cuda_compile_1_generated_elas_gpu.cu.o nvcc fatal : Unsupported gpu architecture 'compute_35' CMake Error at cuda_compile_1_generated_elas_gpu.cu.o.Release.cmake:216 (message): Error generating /home/plvs-master/Thirdparty/libelas-gpu/build/CMakeFiles/cuda_compile_1.dir/GPU/./cuda_compile_1_generated_elas_gpu.cu.o

I do not know how to fix this kind of error.Has anything like that ever happened to you?Could you give me some advice in solving this error? Thanks for your kind attention and look forward your reply.

luigifreda commented 8 months ago

Hi, removing 35 from this line should solve the problem https://github.com/luigifreda/plvs/blob/master/Thirdparty/libelas-gpu/CMakeLists.txt#L57