对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吗?
在尝试对OpenCV3.4.0进行cmake配置时遇到了CUDA_nppicom_LIBRARY找不到的问题。通过查阅资料,发现解决方案是在cmake命令中添加-DCUDA_nppicom_LIBRARY=true这一参数,以确保CUDA库被正确识别和链接。此问题可能由于事先安装CUDA导致,添加参数后编译问题得到解决。
2263

被折叠的 条评论
为什么被折叠?



