2016-02-27 756 views
0

我正在使用Win10-x64。
我按順序安裝Visual Studio 2010,CUDA 7.5,OptiX SDK 3.9.0和CMake 3.5。使用CMake編譯OptiX SDK 3.9時發生錯誤

然後我按照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和得到相同的結果。

+0

對不起打擾。使用「Visual Studio 12 2010 Win64」可以解決所有這些問題。 OpiX 3.9中刪除了32位支持。 –

+3

既然你已經想出瞭如何解決這個問題,爲什麼不給你自己的問題提供一個答案(是的,你可以這樣做)解釋你做了什麼?這將使它對未來的讀者最有用。稍後,你可以回來接受你自己的答案。 –

回答

2

三個月前,OptiX 3.9發佈。所有32位支持已被刪除。 如果你用32位編譯器編譯文件,CMake會報告這個錯誤。

更新了\ SDK目錄中的INSTALL-WIN.txt文檔,它提醒用戶使用64位編譯器進行編譯。只需選擇帶有「win64」後綴的編譯器即可。

win64 compiler