I am compiling OpenCV 3.0.0 with CUDA support on Windows, using CMAKE. When I click \"configure\", errors occur as following:
CMake Error: The following variable
Thanks to tips from Drop in the comments, I solved this problem. In order to close this question, I'm answering my own question.
It's a "Win32 or x64" architecture problem. Since NVIDIA only provides cufft
, nvblas
, nppc
, nppi
, npps
libs for x64, it's naturally impossible for CMAKE to find these libs for configuring a Win32 OpenCV library.
My solution was to choose Visual Studio 11 Win64 instead of Visual Studio 11 as generator in CMAKE. So that CMAKE will automatically load libs from
rather than
. Further more, I also need to load all the other libs required by OpenCV in 64 bit version, such as OpenGL. I will also need to compile OpenCV in x64 architecture. All the code I'm going to write in the future will have to build and debug in x64 only.
Should one have no trouble reading Chinese materials, I'm happy to provide a link towards a post regarding the complete guide on building OpenCV 3.0 on VS2012 with CUDA supports.