问题本身

cmake 之后

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)
linked by target "opencv_cudev" in directory D:/Cproject/opencv/opencv/sources/modules/cudev
...
...
(一堆变量找不到)

某位大佬的解决方法

大佬的解决方法.

大部分人用这个策略其实是可以解决了,但是我发现自己的问题还没有解决,直到我发现Cmake指令本身有问题。

CMAKE换用这个指令!!!

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler ..
Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐