1、
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_nppi_LIBRARY (ADVANCED)
解决办法如下:编译项目时,指定CUDA_nppi_LIBRARY=true:
~# cmake … -DCMAKE_BUILD_TYPE=Release -DCUDA_nppi_LIBRARY=true
编译成功!
2、有多个版本的opencv时,cmake出错,可以在CMakeLists.xt中将
find_package(OpenCV REQUIRED)改为find_package(OpenCV 2 REQUIRED)。详细课参见
点这里