OpenCV3 帶CUDA的CMake自編譯 沒有找到 CUDA_cufft_LIBRARY (ADVANCED) 問題

WITH_CUDA 勾選上 使得OpenCV支持GPU加速

需要利用CMake自編譯

 

相關軟件: OpenCV3.0 CUDA8.0 VS2013 64位 Win10

問題描述:

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) (ADVANCED)

CUDA_nppi_LIBRARY (ADVANCED) (ADVANCED)

CUDA_nppc_LIBRARY (ADVANCED) (ADVANCED)

CUDA_npps_LIBRARY (ADVANCED) (ADVANCED)

......

 

解決方案

查看C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\lib\x64安裝目錄下cufft.lib,nppi.lib, nppc.lib npps.lib等庫是否存在

注意:

# In CUDA 8.0 NPP was splitted onto 12 separate libraries.

+ find_cuda_helper_libs(nppc)

+ find_cuda_helper_libs(nppial)

+ find_cuda_helper_libs(nppic)

+ find_cuda_helper_libs(nppicom)

+ find_cuda_helper_libs(nppidei)

+ find_cuda_helper_libs(nppif)

+ find_cuda_helper_libs(nppig)

+ find_cuda_helper_libs(nppim)

+ find_cuda_helper_libs(nppist)

+ find_cuda_helper_libs(nppisu)

+ find_cuda_helper_libs(nppitc)

+ find_cuda_helper_libs(npps)

如果不存在,需要重新安裝CUDA8.0

其他注意事項:

(1)CUDA8.0重新安裝注意一點,一定不要選擇安裝CUDA裏面自帶的驅動,僅安裝第一個選項下的Runtime和Document即可。

 

(2)CMake的編譯器一定要選擇 VS2013 Win64,即64位編譯器

否則會發生:fatal error LNK1112: 模塊計算機類型“X86”與目標計算機類型“x64”衝突問題

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章