我需要使用CUDA8.0的OpenCV 3.2.0。 我正在关注this教程,在最后一步 - 构建INSTALL项目 - Visual Studio 2013给了我大约45个错误,如:
LNK1104: cannot open file "..\..\lib\Debug\opencv_world320d.lib
错误发生在开始构建后约30-40分钟。
这是第一个发生的错误:
> C:\Program Files (x86)\Windows Kits\8.1\Include\um\combaseapi.h(229): error : identifier "IUnknown" is undefined
9>
9>C:\Program Files (x86)\Windows Kits\8.1\Include\um\combaseapi.h(229): warning : expression has no effect
9>
9>D:\OCV\opencv-3.2.0\modules\core\include\opencv2/core/base.hpp(365): warning : function declared with "noreturn" does return
9>
9> 1 error detected in the compilation of "C:/Users/tomus/AppData/Local/Temp/tmpxft_000018ac_00000000-6_gftt.cpp4.ii".
9>CUSTOMBUILD : nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
9> gftt.cu
9> CMake Error at cuda_compile_generated_gftt.cu.obj.cmake:264 (message):
9> Error generating file
9> D:/OCV/build2/modules/world/CMakeFiles/cuda_compile.dir/__/cudaimgproc/src/cuda/Debug/cuda_compile_generated_gftt.cu.obj
之后我有47个错误LNK1104。