Closed somisawa closed 2 years ago
Apologies for this, I had forgotten to include the relevant cmake/FindOptiX.cmake
file in this repository and only remedied the issue 2 hours ago. (see https://github.com/NVlabs/instant-ngp/commit/8bd9ff435a89d4ae71372056a7a6d0f44f4c4378)
OptiX should now be found out-of-the-box (assuming OptiX_INSTALL_DIR
is set)
Oh, I missed your recent update. Thank you so much for fixing. I will close this issue.
Question: Was my way correct? Or do there exist other solutions you suppose?
Environment: Ubuntu 20.04 Objective package: OptiX™ SDK 7.4.0 downloaded from here.
In this part, you use
find_package
butpath/to/NVIDIA-OptiX-SDK-7.4.0-linux64-x86_64/SDK/CMake/FindOptiX.cmake
does not set OptiX_FOUND even ifoptix.h
exists inOptiX_INSTALL_DIR
orOptiX_INSTALL_DIR/include
. https://github.com/NVlabs/instant-ngp/blob/06ee0a2839be8d52e47ebe86ec86246b8ca19c1d/CMakeLists.txt#L162-L174I've solved this problem by adding the following code at the end of
path/to/NVIDIA-OptiX-SDK-7.4.0-linux64-x86_64/SDK/CMake/FindOptiX.cmake
so thatfind_package
correctly setOptiX_FOUND
.