-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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 #30272
Comments
|
Any ideas would could be causing that problem? |
@JonLiu1993 forward me here to help fixing my issue. everything I try from those links give me similar error:
Any help please? I am on Windows 11 |
@Tobe2d Paths with special characters may cause |
Thanks @FrankXie05 for the reply, Below is the log file: |
@Tobe2d Could you please try replacing the It seems that the upstream did not include when using the macro |
Thanks @FrankXie05 I replaced the zip to
|
Errror log? |
Failure logs -- Using cached colmap-colmap-30da037ce19bdceb6d239c45342fadb221bdabb2.tar.gz. Call Stack (most recent call first): |
Hi @FrankXie05 I encountered similar issue and this is my error log after applying your colmap.zip patch to |
I don't see an error in the log file you provided. Could you please provide the console output? @cheng-chi |
@FrankXie05 Thanks for the fast reply! The errors are buried a little deep here. You can find them by searchring for
|
@FrankXie05 Here's my console output:
|
Could you please provide the file: |
@FrankXie05 Here you go! Unfortunately I don't have much experience with |
I ran in to this and the problem seems to be the stray I haven't been able to able to make the project to compile, though. Patching away this line didn't help. |
Issue is still present today. Following the steps to install nerfstudio on Windows, after compiling deps for over an hour, the COLMAP steps:
just fail with the same error. |
Hi, I have the same error here. Apparently it has something to do with VSCode and some spaces in the paths |
I am having this problem now also. |
I am a total Linux idiot but have set it up before on a virtual machine. Could I run nerfstudio from Linux within a virtual machine? Would it be possible to install Linux on my machine and dual-boot between Windows 11 and Linux? |
No, not easily, you need the video card for CUDA, which the VM doesn't get access to. |
Thank you for the response, I appreciate all the help we can get on this issue. Is the dual-boot concept not an option either? I will look into WSL2... haven't had time yet to try the above methods. |
Dual boot is perfectly fine, though keep in mind you'll have to pre-distribute your disk space between operating systems, and NeRFs can use up a lot of space pretty quickly. I'm up to 500GB on my NeRF folder already. That said, this is getting pretty off-topic for this issue/repo, and does not lead to a fix for the actual issue, so it might be time to move this elsewhere. The Nerfstudio Discord is a better place for individual support. |
I was able to get nerfstudio working by installing both |
Hi, have you solved this problem? I have the same log error as you. If yes, may I know how you solve it? Thank you so much in advance |
Sadly I never found a solution and ended up leaving it and using luma.ai
and volunga to process my nerfs. :/
Sad to hear it’s still an issue. Any further ideas welcome.
…On Wed 23 Aug 2023 at 17:13, Binglun Wang ***@***.***> wrote:
Issue is still present today. Following the steps to install nerfstudio on
Windows, after compiling deps for over an hour, the COLMAP steps:
git clone https://github.com/microsoft/vcpkg
cd vcpkg
bootstrap-vcpkg.bat
vcpkg install colmap[cuda]:x64-windows
just fail with the same error. --head fails as well. nvcc fatal : A
single input file is required for a non-link phase when an outputfile is
specified CUDA toolkit 11.8.
install-x64-windows-dbg-out.log
<https://github.com/microsoft/vcpkg/files/11638228/install-x64-windows-dbg-out.log>
I am having this problem now also.
Hi, have you solved this problem? I have the same log error as you. If
yes, may I know how you solve it? Thank you so much in advance
—
Reply to this email directly, view it on GitHub
<#30272 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BBA274S77LUZ3QTDHIJG4ADXWYMYBANCNFSM6AAAAAAV7TH2KM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi there - after hours of downloading and building vcpkg on Windows 10 while trying to get nerfstudio to work, I had the same error message:
Thankfully, after a bit of tweaking and reading through this post and some other github comments, I was able to get nerfstudio to run smoothly across multiple hard drives, with the following steps. Your mileage may vary but hope these notes help -
|
The build error is caused by the /EHsc argument in the nvcc command line. A manual workaround is to edit the build.ninja file and run ninja directly. |
Same issue, Have tried making sure there are no spaces in ANY paths. Cuda, vcpkg, visual studio all have no spaces in their paths. C:\NVIDIAGPU |
The issue is not with spaces, but with arguments with slashes - in this case the /EHsc command. This can be deleted from the ninja files. In one case I encountered it was possible to edit the build.ninja file, in other cases I had to edit the rules.ninja file and delete the $FLAGS argument in the nvcc calls. |
Still no luck tried both and a combination of the two. Taken from the Visual Studio Developer Prompt with the command: C:/Tool/VisualStudio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe -v -v -j17 install outputLogNoFlagsInNVCCCalls.txt |
Which version of Visual Studio and CUDA do you use? I haven't encountered those errors using the latest version of Visual Studio 2022 and CUDA 12.1. |
Visual studio 2019 per colmaps recomendation, cuda 12.2. |
Just an update. I gave up on windows, installed a linux os on dual-boot, had colmap working in around an hour. I spent over a week trying to sort this error on windows. |
I ran into the same exact behavior/issue, but adding the following hack that essentially "escapes" the extra \EHsc fixed it for me.
|
It works.
Create new file fix-cuda.patch
Modify ports/colmap/portfile.cmake
|
For background info - this is caused by IMath and OpenEXR libraries (both dependencies of FreeImage which is dependency of colmap) declaring compile argument '/EHsc' in cmake as INTERFACE_COMPILE_OPTIONS, which is fine for C compiler, but not for CUDA(nvcc). The patch posted by longhuan2018 should work, it is also possible to replace the flag with conditional '$<$<NOT:$<COMPILE_LANGUAGE:CUDA>>:/EHsc>' so that it still applies to C targets. Here is a patch for top level CMakeLists.txt i made before stumbling upon this thread:
|
in case anyone's still attempting nerfstudio, i kinda made it work
|
if so |
Host Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install colmap[cuda]:x64-windows
Failure logs
stdout-x64-windows.log
install-x64-windows-dbg-out.log
The text was updated successfully, but these errors were encountered: