Giter Site home page Giter Site logo

Comments (17)

mhalber avatar mhalber commented on May 11, 2024 15

For whomever is encountering this problem:
Make sure you run a cmake in command line environment in which cl.exe can be found - if you have BuildTools installed, then Native Tools Command Prompt gives you this. Additionally, make sure to remove any previous cmake cache.

from instant-ngp.

ciwolsey avatar ciwolsey commented on May 11, 2024 12

For anyone who still has issues after getting cl.exe into your path etc - make sure you remove the "build" directory before running cmake again.

from instant-ngp.

yuse94 avatar yuse94 commented on May 11, 2024 6

image

Hey, still getting this same issue with a reinstall and trying Native Tools. not sure how to further troubleshoot.

Same here

I right clicked inside the folder where I needed to run the compiler and clicked show more options, and selected the option to open with Visual Studio. A folder called .vs was created run the command line and it worked

from instant-ngp.

erich666 avatar erich666 commented on May 11, 2024 6

What should the cl.exe path entry look like? What is the location of the "build" folder, should it have been created inside the "instant-ngp" repo folder?

In case it's a help, I had the same error, evidently because Cmake tried to run Visual Studio 2022's compiler by default. I removed the "build" directory in GitHub\instant-ngp (which gets rid of the cached compiler settings), then did this in the Developer Command Prompt (for VS 2022, which might have been the wrong one to use...):

cmake . -B build -G "Visual Studio 16 2019"

followed by the usual:

cmake --build build --config RelWithDebInfo -j 16

This worked for me.

Also, you'll find the Developer Command Prompt executable in "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2019\Visual Studio Tools" (or 2022).

from instant-ngp.

jk4011 avatar jk4011 commented on May 11, 2024

Please look at #18

from instant-ngp.

ifilipis avatar ifilipis commented on May 11, 2024

Please look at #18

It's a different one. I've found the solution for CUDA toolkit, too

from instant-ngp.

jk4011 avatar jk4011 commented on May 11, 2024

This might help. mitsuba-renderer/mitsuba2#103 (comment)

from instant-ngp.

ifilipis avatar ifilipis commented on May 11, 2024

This might help. mitsuba-renderer/mitsuba2#103 (comment)

I have a different issue that this

from instant-ngp.

WXuanyang avatar WXuanyang commented on May 11, 2024

Got the same problem here, did you find a solution? I'm using MSVC 342 btw

from instant-ngp.

WXuanyang avatar WXuanyang commented on May 11, 2024

Got the same problem here, did you find a solution? I'm using MSVC 342 btw

Hummm I reinstalled vs2019 and it somehow works, I don't know why but maybe you can also have a try

from instant-ngp.

ifilipis avatar ifilipis commented on May 11, 2024

if you have BuildTools installed, then Native Tools Command Prompt gives you this. Additionally, make sure to remove any previous cmake cache.

Yes! This worked!

from instant-ngp.

Ricky-Millar avatar Ricky-Millar commented on May 11, 2024

Hey, still getting this same issue with a reinstall and trying Native Tools. not sure how to further troubleshoot.

from instant-ngp.

TheUniquePaulSmith avatar TheUniquePaulSmith commented on May 11, 2024

image

Hey, still getting this same issue with a reinstall and trying Native Tools. not sure how to further troubleshoot.

Same here

from instant-ngp.

koktavy avatar koktavy commented on May 11, 2024

@ciwolsey What should the cl.exe path entry look like? What is the location of the "build" folder, should it have been created inside the "instant-ngp" repo folder?

from instant-ngp.

wowo0709 avatar wowo0709 commented on May 11, 2024

What should the cl.exe path entry look like? What is the location of the "build" folder, should it have been created inside the "instant-ngp" repo folder?

In case it's a help, I had the same error, evidently because Cmake tried to run Visual Studio 2022's compiler by default. I removed the "build" directory in GitHub\instant-ngp (which gets rid of the cached compiler settings), then did this in the Developer Command Prompt (for VS 2022, which might have been the wrong one to use...):

cmake . -B build -G "Visual Studio 16 2019"

followed by the usual:

cmake --build build --config RelWithDebInfo -j 16

This worked for me.

Also, you'll find the Developer Command Prompt executable in "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2019\Visual Studio Tools" (or 2022).

This worked for me! Thanks!

from instant-ngp.

Aimarl0 avatar Aimarl0 commented on May 11, 2024

What should the cl.exe path entry look like? What is the location of the "build" folder, should it have been created inside the "instant-ngp" repo folder?

In case it's a help, I had the same error, evidently because Cmake tried to run Visual Studio 2022's compiler by default. I removed the "build" directory in GitHub\instant-ngp (which gets rid of the cached compiler settings), then did this in the Developer Command Prompt (for VS 2022, which might have been the wrong one to use...):

cmake . -B build -G "Visual Studio 16 2019"

followed by the usual:

cmake --build build --config RelWithDebInfo -j 16

This worked for me.

Also, you'll find the Developer Command Prompt executable in "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2019\Visual Studio Tools" (or 2022).

worked for me! Thanks!

from instant-ngp.

DmitriGoloubentsev avatar DmitriGoloubentsev commented on May 11, 2024

I had same error message, but none of the above helped me.
I used shared folder between linux and windows guest to store source tree. After I moved source to C:\ the problem went away. huh.

from instant-ngp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.