Closed bipul-mohanto closed 2 years ago
CMake Error at common/gdt/cmake/FindOptiX.cmake:103 (message):
OptiX headers (optix.h and friends) not found. Please locate before
proceeding.
Call Stack (most recent call first):
common/gdt/cmake/FindOptiX.cmake:115 (OptiX_report_error)
common/gdt/cmake/configure_optix.cmake:24 (find_package)
CMakeLists.txt:37 (include)
Okay, I found the solution.
set(OptiX_INSTALL_DIR "/home/name-computer/Downloads/NVIDIA-OptiX-SDK-7.4.0-linux64-x86_64")
. This solved the first problem, but lead to another BIN2CC
not found, although I have defined bin2cc in cmake build. CMakeCache.txt
and configure_optix.cmake
with set(BIN2C /usr/local/cuda-11.6/bin/bin2c)
. This solved the BIN2CC
problem, but lead me to another compile time error. CMakeCache.txt
files, but kept the configure_optix.cmake
with set(BIN2C /usr/local/cuda-11.6/bin/bin2c)
and made a fresh cmake build.
Hello,
I am using the following configuration:
Ubuntu 20.04.4 LTS
cmake version 3.16.3
During installing OptiX 7.4, I have defined the OptiX_DIR with the command:
export OptiX_INSTALL_DIR=/home/computer-name/Downloads/NVIDIA-OptiX-SDK-7.4.0-linux64-x86_64
Problem:
Although I have predefined
OptiX_INSTALL_DIR
, if I BUILDoptix7course
from CMakeGUI, I need to define manually again theOptiX_INSTALL_DIR
. If I set it toNVIDIA-OptiX-SDK-7.4.0-linux64-x86_64
directory, both configure and generate works fine. However, when I am opening the repository withCLion IDE
, it is returning the errors:If I try to build to repository using
cmake ..
from the terminal, the exact same error is showed up.The
CmakeError.log
shows something like this: