我用的是Win10-x64。
我按顺序安装了Visual 2010、CUDA 7.5、OptiX SDK3.9.0和CMake 3.5。
然后,我遵循OptiX/SDK/中的INSTALL-WIN.txt,并尝试编译这些示例。我按配置键,然后:
CMake Error at CMake/FindOptiX.cmake:75 (message):
optix library not found. Please locate before proceeding.
Call Stack (most recent call first):
CMake/FindOptiX.cmake:84 (OptiX_report_error)
CMakeLists.txt:189 (find_package)
然后我将/../lib64/*
复制到/../lib/*
,/../bin64/*
复制到/../bin/*
上面的错误似乎是固定的,但是新的错误:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cufft_LIBRARY (ADVANCED)
linked by target "ocean" in directory C:/ProgramData/NVIDIA Corporation/OptiX SDK 3.9.0/SDK/ocean
我尝试了CMake3.0并得到了相同的结果。
发布于 2016-02-28 15:00:30
三个月前,OptiX 3.9发布了。所有32位的支持都被删除了。如果使用32位编译器编译文件,CMake将报告此错误.
\SDK目录中的INSTALL-WIN.txt文档被更新,它提醒用户使用64位编译器进行编译。只需选择带有"win64“后缀的编译器即可。
https://stackoverflow.com/questions/35665905
复制相似问题