NVlabs / instant-ngp

Instant neural graphics primitives: lightning fast NeRF and more
https://nvlabs.github.io/instant-ngp
Other
16.01k stars 1.93k forks source link

CMake error #211

Closed andzejsp closed 2 years ago

andzejsp commented 2 years ago

Hello, im trying to make ir work on windows 10, VS community 2022,

But when i open cmakelists.txt i get this error:

Severity    Code    Description Project File    Line    Suppression State
Error       CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake:69 (message):
  The C compiler

    "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: E:/VBA_PROJECTS/Git/NVlabs/instant-ngp/out/build/x64-Debug/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_34c9f && [1/2] Building C object CMakeFiles\cmTC_34c9f.dir\testCCompiler.c.obj
    [2/2] Linking C executable cmTC_34c9f.exe
    FAILED: cmTC_34c9f.exe 
    cmd.exe /C "cd . && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_34c9f.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1430~1.307\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_34c9f.dir\testCCompiler.c.obj  /out:cmTC_34c9f.exe /implib:cmTC_34c9f.lib /pdb:cmTC_34c9f.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
    RC Pass 1: command "rc /fo CMakeFiles\cmTC_34c9f.dir/manifest.res CMakeFiles\cmTC_34c9f.dir/manifest.rc" failed (exit code 0) with the following output:
    The system cannot find the file specified
    ninja: build stopped: subcommand failed.

  CMake will not be able to correctly generate this project.        C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake    69  

Also output is this:

 CMake generation started for default configuration: 'x64-Debug'.
1> Command line: "C:\WINDOWS\system32\cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\VBA_PROJECTS\Git\NVlabs\instant-ngp\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe"  -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "E:\VBA_PROJECTS\Git\NVlabs\instant-ngp" 2>&1"
1> Working directory: E:\VBA_PROJECTS\Git\NVlabs\instant-ngp\out\build\x64-Debug
1> [CMake] -- The C compiler identification is MSVC 19.30.30706.0
1> [CMake] -- The CXX compiler identification is MSVC 19.30.30706.0
1> [CMake] -- The CUDA compiler identification is unknown
1> [CMake] -- Detecting C compiler ABI info
1> [CMake] -- Detecting C compiler ABI info - failed
1> [CMake] -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe
1> [CMake] -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - broken
1> [CMake] CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake:69 (message):
1> [CMake]   The C compiler
1> [CMake] 
1> [CMake]     "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe"
1> [CMake] 
1> [CMake]   is not able to compile a simple test program.
1> [CMake] 
1> [CMake]   It fails with the following output:
1> [CMake] 
1> [CMake]     Change Dir: E:/VBA_PROJECTS/Git/NVlabs/instant-ngp/out/build/x64-Debug/CMakeFiles/CMakeTmp
1> [CMake]     
1> [CMake]     Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_34c9f && [1/2] Building C object CMakeFiles\cmTC_34c9f.dir\testCCompiler.c.obj
1> [CMake]     [2/2] Linking C executable cmTC_34c9f.exe
1> [CMake]     FAILED: cmTC_34c9f.exe 
1> [CMake]     cmd.exe /C "cd . && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_34c9f.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1430~1.307\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_34c9f.dir\testCCompiler.c.obj  /out:cmTC_34c9f.exe /implib:cmTC_34c9f.lib /pdb:cmTC_34c9f.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
1> [CMake]     RC Pass 1: command "rc /fo CMakeFiles\cmTC_34c9f.dir/manifest.res CMakeFiles\cmTC_34c9f.dir/manifest.rc" failed (exit code 0) with the following output:
1> [CMake]     The system cannot find the file specified
1> [CMake]     ninja: build stopped: subcommand failed.
1> [CMake]     
1> [CMake]     
1> [CMake] 
1> [CMake]   
1> [CMake] 
1> [CMake]   CMake will not be able to correctly generate this project.
1> [CMake] Call Stack (most recent call first):
1> [CMake]   CMakeLists.txt:11 (PROJECT)
1> [CMake] -- Configuring incomplete, errors occurred!
1> [CMake] See also "E:/VBA_PROJECTS/Git/NVlabs/instant-ngp/out/build/x64-Debug/CMakeFiles/CMakeOutput.log".
1> [CMake] See also "E:/VBA_PROJECTS/Git/NVlabs/instant-ngp/out/build/x64-Debug/CMakeFiles/CMakeError.log".
1> 'C:\WINDOWS\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\VBA_PROJECTS\Git\NVlabs\instant-ngp\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe"  -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "E:\VBA_PROJECTS\Git\NVlabs\instant-ngp" 2>&1"' execution failed with error: ''C:\WINDOWS\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\VBA_PROJECTS\Git\NVlabs\instant-ngp\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe"  -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "E:\VBA_PROJECTS\Git\NVlabs\instant-ngp" 2>&1"' returned with exit code: 1'.

I have GPU: quadro p1000, updated today to latest drivers + installed latest cuda tools.

What do i need to do to make it work?

schlonja commented 2 years ago

yeah i have the exact same issue. please help

andzejsp commented 2 years ago

well there is that TCNN_CUDA_ARCHITECTURES environment variable that you can set but i cant find a value for quadro P1000

schlonja commented 2 years ago

solved! you have to install the windows SDK in the Visual studio installer

andzejsp commented 2 years ago

Well just as the comment above says, i tried this on different pc with GTX1080ti. added all windows 10 sdk's from visual studio installer, and now im inside the testbedd.exe rendering the fox.. but be ware! rendering is slow.. it took me 10 minutes to get this

NVIDIA_Share_mLE6wBmh5E

.obj in blender blender_QpVCjtGztw

Not sure where the unwrapped texture lives or how to get it out

For comparison: meshroom did this in less than 8minutes NVIDIA_Share_7lD8HztbKF

NVIDIA_Share_2PewY6paRg

and it got textured.

PC used here: 32gb ram 3000 Ryzem 5800x GTX1080ti PCIe 4 nvme

So unless youre a chad with RTX 3090, stick with meshroom :)

Still nice tech and i hope this gets implemented into meshroom :)