You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this part, you use find_package but path/to/NVIDIA-OptiX-SDK-7.4.0-linux64-x86_64/SDK/CMake/FindOptiX.cmake does not set OptiX_FOUND even if optix.h exists in OptiX_INSTALL_DIR or OptiX_INSTALL_DIR/include.
# set OptiX_INSTALL_DIR via your environment if it's not found automatically
if (OptiX_FOUND)
include_directories("${OptiX_INCLUDE}")
add_definitions(-DNGP_OPTIX)
else()
message(WARNING
"OptiX was not found. Neural graphics primitives will still compile "
"and run correctly. However, SDF training in 'raystab' and 'pathescape' "
"modes will be significantly slower."
)
endif()
I'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 that find_package correctly set OptiX_FOUND.
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 8bd9ff4)
OptiX should now be found out-of-the-box (assuming OptiX_INSTALL_DIR is set)
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
.instant-ngp/CMakeLists.txt
Lines 162 to 174 in 06ee0a2
I'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
.The text was updated successfully, but these errors were encountered: