对opencv3.4.0进行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_nppicom_LIBRARY (ADVANCED)
去网上查找了好久资料,最后按照这篇文章的方法Opencv-GPU 编译错误 CUDA_nppicom_LIBRARY (ADVANCED) 未定义
在cmake命令参数里添加-D CUDA_nppicom_LIBRARY=true
这个参数就好了。
我之前在别的电脑上安装opencv3.4.0的时候没有遇到过这么多问题,是因为我先装了cuda吗?