Skip to content
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

CMake error at CMakelists.txt:11 The system cannot find the file specified #1083

Open
DuckersMcQuack opened this issue Nov 18, 2022 · 1 comment

Comments

@DuckersMcQuack
Copy link

(base) C:\immersive-ngp\immersive-ngp\instant-ngp>cmake . -B build
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:11 (project):
Running

'nmake' '-?'

failed with:

The system cannot find the file specified

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CUDA_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

@herrpedro
Copy link

herrpedro commented Dec 18, 2022

before the project I added the compilers and those "not set" errors disappeared
set( CMAKE_CXX_COMPILER "C:/MinGW/bin/g++.exe" )
set( CMAKE_C_COMPILER "cl.exe" )
set( CMAKE_CUDA_COMPILER "nvcc.exe" )

in vstudio installation you must check desktop develop using c++
https://stackoverflow.com/questions/8125826/error-compiling-cuda-from-command-prompt

then you must add the place of c compiler to the path do that cuda compiler gets the place too like so
set Path=%Path%;C:\MinGW\bin;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\Hostx64\x64

after that i compiled it with the instructions given

i got into an error of GPU not detected but it was solved by
mitsuba-renderer/mitsuba2#103 (comment)

antivirus got in the way at first so i had to make 2 times
i now have a nice testbed.exe to test tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants