0

我正在使用 Win10-x64。
我按顺序安装了 Visual Studio 2010、CUDA 7.5、OptiX SDK 3.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 并得到相同的结果。

4

1 回答 1

2

三个月前,OptiX 3.9 发布。已删除所有 32 位支持。如果用 32 位编译器编译文件,CMake 会报这个错误。

更新了\SDK目录下的INSTALL-WIN.txt文件,提醒用户使用64位编译器编译。只需选择带有“win64”后缀的编译器即可。

win64编译器

于 2016-02-28T15:00:30.460 回答