-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[colmap] Build error on x64-windows #38768
Comments
You forget to attach C:\Users\NEW\vcpkg\installed\vcpkg\issue_body.md |
Package: colmap[core,cuda]:x64-windows@2023-10-01 Host Environment
To Reproduce
Failure logs
C:\Users\NEW\vcpkg\buildtrees\colmap\install-x64-windows-dbg-out.log
|
Unfortunately, your log has too many warnings and your computer too much cores. The short log doesn't has the error line. Could you post the log C:\Users\NEW\vcpkg\buildtrees\colmap\install-x64-windows-dbg-out.log or the error message ? |
Call Stack (most recent call first): error: building colmap:x64-windows failed with: BUILD_FAILED And the Error log you asked text file is EMPTY. |
C:\Users\NEW\vcpkg\buildtrees\colmap\install-x64-windows-dbg-out.log `Change Dir: 'C:/Users/NEW/vcpkg/buildtrees/colmap/x64-windows-dbg' Run Build Command(s): "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v -v -j17 install |
What's the version of your |
cmake version 3.29.3 |
Look to be a duplicated issue of #30272 (comment) There is some patches that you may try. |
I can't find the solution, can you please provide the solution here. |
I don't know if it's the good solution. Look at the link I posted. There is a patch to apply : index a15d3bb5c..952e1e56b 100644
--- a/src/colmap/mvs/CMakeLists.txt
+++ b/src/colmap/mvs/CMakeLists.txt
@@ -90,6 +90,12 @@ if(CUDA_ENABLED)
CUDA::curand
)
+ # Hack for the extra \EHsc that gets added on Windows to the nvcc compile line, which causes the error:
+ # "nvcc fatal: A single input file is required for a non-link phase when an outputfile is specified..."
+ if(IS_MSVC)
+ set_target_properties(colmap_mvs_cuda PROPERTIES COMPILE_OPTIONS -Xcompiler)
+ endif()
+
COLMAP_ADD_TEST(
NAME gpu_mat_test
SRCS gpu_mat_test.cu |
Sorry, could you please elaborate the process of what you mentioned. |
Create new file ports/colmap/fix-cuda.patch
Modify ports/colmap/portfile.cmake
Run again vcpkg install colmap |
Thanks for your assistance @bansan85 , But I installed manually colmap 3.7 older version. Now it's working fine to me. Once again thank you! |
error: building colmap:x64-windows failed with: BUILD_FAILED
Elapsed time to handle colmap:x64-windows: 1.6 min
Please ensure you're using the latest port files with
git pull
andvcpkg update
.Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+colmap
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[colmap]+Build+error+on+x64-windows&body=Copy+issue+body+from+C%3A%2FUsers%2FNEW%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
The text was updated successfully, but these errors were encountered: