解决WSL2下使用Ubuntu编译COLMAP报错
约 247 字小于 1 分钟...
摘要
使用CUDA必须要手动编译COLMAP源码, 最近在WLS2下使用Ubuntu编译时出现了以下错误, 本文将提供一种用于解决该问题的可行方案:
-- Found Threads: TRUE
-- The CUDA compiler identification is NVIDIA 12.6.85
CMake Error at /usr/share/cmake-3.27/Modules/CMakeDetermineCUDACompiler.cmake:528 (message):
Failed to extract nvcc implicit link line.
Call Stack (most recent call first):
cmake/FindDependencies.cmake:167 (enable_language)
CMakeLists.txt:121 (include)
-- Configuring incomplete, errors occurred!
解决方案
# 可使用 `which nvcc` 输出 `nvcc` 的路径
# root@MSI:~# which nvcc
# /usr/local/cuda-12.6/bin/nvcc
export CUDACXX=/usr/local/cuda-12.6/bin/nvcc
cmake ..
Powered by Waline v3.3.0