问题:
[ 25%] Building NVCC (Device) object CMakeFiles/centerpoint.dir/src/centerpoint_generated_postprocess_kernels.cu.o
cc: fatal error: cannot execute ‘cc1plus’: execvp: 没有那个文件或目录
compilation terminated.
nvcc fatal : Failed to preprocess host compiler properties.
cc: fatal error: cannot execute ‘cc1plus’: execvp: 没有那个文件或目录
compilation terminated.
nvcc fatal : Failed to preprocess host compiler properties.
CMake Error at centerpoint_generated_preprocess_kernels.cu.o.Release.cmake:220 (message):
Error generating
/home/gaoithe/project/python/code/Lidar_AI_Solution/CUDA-CenterPoint/build/CMakeFiles/centerpoint.dir/src/./centerpoint_generated_preprocess_kernels.cu.o
CMake Error at centerpoint_generated_postprocess_kernels.cu.o.Release.cmake:220 (message):
Error generating
/home/gaoithe/project/python/code/Lidar_AI_Solution/CUDA-CenterPoint/build/CMakeFiles/centerpoint.dir/src/./centerpoint_generated_postprocess_kernels.cu.o
make[2]: *** [CMakeFiles/centerpoint.dir/build.make:84:CMakeFiles/centerpoint.dir/src/centerpoint_generated_preprocess_kernels.cu.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[2]: *** [CMakeFiles/centerpoint.dir/build.make:77:CMakeFiles/centerpoint.dir/src/centerpoint_generated_postprocess_kernels.cu.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:82:CMakeFiles/centerpoint.dir/all] 错误 2
make: *** [Makefile:91:all] 错误 2
解决方法:
find / -name cc1plus 2>/dev/null
发现文件在:
/usr/lib/gcc/x86_64-linux-gnu/11/cc1plus
将位置加入 PATH:
export PATH=$PATH:/usr/lib/gcc/x86_64-linux-gnu/11/