NVlabs / instant-ngp

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

could not find optix #23

Closed l1346792580123 closed 2 years ago

l1346792580123 commented 2 years ago

Thanks for sharing this brilliant work! I have trouble in finding the optix module. It seems that the OptiX_INSTALL_DIR is used in FindOptiX.cmake, but this file is not in the CMAKE_MODULE_PATH. So I copy the optix/SDK/CMake/FindOptiX.cmake to instant-ngp/cmake and set OptiX_INSTALL_DIR. Now find_package can find the OptiX and OptiX_INCLUDE is set correctly, but Optix_FOUND is not set. If I manually set the Optix_FOUND, an error occurred in build optix_pth.h. How can I set optix correctly?

Tom94 commented 2 years ago

Well, this is mildly embarrassing. The script we are using to maintain the public version of this codebase did not copy over the cmake folder. Apologies!

I've just pushed the missing files. Please try again.

l1346792580123 commented 2 years ago

Thanks for your quick apply! Now I can build the project successfully!