CMake Error: The following variables are used in this project, but they are set to NOTFOUND.错误引发的深思:
关于opencv2.4.13.2在cmake(3.9.6版本)编译为(
vs IDE 32位架构下支持的)opencv_gpu包,
过程中,选择
Visual Studio 14 2015(注意与Visual Studio 14 2015 Win64区别)
我的cuda版本:win10 8.0 x86_64支持。
出现CMake Error: The following variables are used in this project, but they are set to NOTFOUND.的问题!!!
缺少库:
opencv_dep_CUDA_cufft_LIBRARY
opencv_dep_CUDA_nppc_LIBRARY
opencv_dep_CUDA_nppi_LIBRARY
opencv_dep_CUDA_npps_LIBRARY
参考链接:https://stackoverflow.com/questions/33097558/cmake-cuda-libraries-not-found-when-compiling-opencv

当尝试编译OpenCV时遇到CMake错误,变量opencv_dep_CUDA_..._LIBRARY设置为NOTFOUND。问题根源在于NVIDIA仅提供x64版本的CUDA库,而CMAKE配置的是Win32架构。解决方案是使用Visual Studio 11 Win64作为CMAKE生成器,确保加载64位版本的CUDA及相关库,如OpenGL,并将整个项目切换到x64架构进行编译和调试。
最低0.47元/天 解锁文章
2万+

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



