Resolving compilation errors for COLMAP in Ubuntu under WSL2
About 208 wordsLess than 1 minute...
Abstract
Using CUDA requires manually compiling the COLMAP source code. Recently, when compiling under WLS2 with Ubuntu, the following error occurred. This article provides a feasible solution to address the issue:
-- 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!
Resolving
Before compiling, first export the path of nvcc
, then use cmake
to compile:
You can use `which nvcc` to output the path of `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