[colmap] Build error [nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified] #32141
Labels
category:port-bug
The issue is with a library, which is something the port should already support
Hello,
I have tried to build colmap from vcpkg but the following errors occur.
install-x64-windows-rel-vs2019-v142-rel-out.log
This is an example of the error thrown by nvcc.
C:\PROGRA~1\NVIDIA~2\CUDA\v12.1\bin\nvcc.exe -forward-unknown-to-host-compiler -DBOOST_ALL_DYN_LINK=1 -DCGAL_ENABLED -DCGAL_USE_GMPXX=1 -DCUDA_ENABLED -DGFLAGS_IS_A_DLL=1 -DGLOG_NO_ABBREVIATED_SEVERITIES -DGL_GLEXT_PROTOTYPES -DGUI_ENABLED -DIMATH_DLL -DOPENEXR_DLL -DOPENGL_ENABLED -DOPENMP_ENABLED -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DWIN32_LEAN_AND_MEAN -D_MWAITXINTRIN_H_INCLUDED -ID:\vcpkg\buildtrees\colmap\src\b221bdabb2-e3968635af.clean\lib -ID:\vcpkg\buildtrees\colmap\src\b221bdabb2-e3968635af.clean\src -isystem D:\vcpkg\installed\x64-windows-rel-vs2019-v142\include -isystem D:\vcpkg\installed\x64-windows-rel-vs2019-v142\include\eigen3 -isystem D:\vcpkg\installed\x64-windows-rel-vs2019-v142\include\qt5 -isystem D:\vcpkg\installed\x64-windows-rel-vs2019-v142\include\qt5\QtCore -isystem D:\vcpkg\installed\x64-windows-rel-vs2019-v142\tools\qt5\mkspecs\win32-msvc -isystem D:\vcpkg\installed\x64-windows-rel-vs2019-v142\include\qt5\QtOpenGL -isystem D:\vcpkg\installed\x64-windows-rel-vs2019-v142\include\qt5\QtWidgets -isystem D:\vcpkg\installed\x64-windows-rel-vs2019-v142\include\qt5\QtGui -isystem "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -isystem D:\vcpkg\installed\x64-windows-rel-vs2019-v142\include\webp -isystem D:\vcpkg\installed\x64-windows-rel-vs2019-v142\include\OpenEXR -isystem D:\vcpkg\installed\x64-windows-rel-vs2019-v142\include\Imath -isystem D:\vcpkg\installed\x64-windows-rel-vs2019-v142\include\GKlib -D_WINDOWS -Xcompiler="/W3 /GR /EHsc" -D_FORCE_INLINES -Wno-deprecated-gpu-targets --use_fast_math --default-stream per-thread -Xptxas=-suppress-stack-size-warning -Xcompiler="-MD -O2 -Ob2" -DNDEBUG -std=c++14 -arch=native /EHsc -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -MD -MT src\CMakeFiles\colmap_cuda.dir\mvs\gpu_mat_ref_image.cu.obj -MF src\CMakeFiles\colmap_cuda.dir\mvs\gpu_mat_ref_image.cu.obj.d -x cu -c D:\vcpkg\buildtrees\colmap\src\b221bdabb2-e3968635af.clean\src\mvs\gpu_mat_ref_image.cu -o src\CMakeFiles\colmap_cuda.dir\mvs\gpu_mat_ref_image.cu.obj -Xcompiler=-Fdsrc\CMakeFiles\colmap_cuda.dir\colmap_cuda.pdb,-FS nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
There was a report of this error in the following link.
#NVlabs/instant-ngp#198
However I do not see any space in the command above.
The triplet I used in this build setup is the following.
Cuda version 12.1
Previously, I tried testing with Cuda version 10.2 but it failed to compile due to the following error.
nvcc fatal : Unsupported gpu architecture 'compute_89'
My GPU is RTX 4080.
Environment :
Windows 10
VIsual Studio 2019 community
vcpkg
Cuda 12.1
The text was updated successfully, but these errors were encountered: