我安装了OpenCV 3.0.0但是我使用OpenCV遇到了任何C ++或Python代码的麻烦。为了进行测试,我进入了目录opencv-3.0.0/samples
并运行cmake
来构建示例。我收到以下错误:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find CUDA: Found unsuitable version "5.5", but required is exact version "7.0" (found /usr)
但是,我很确定我安装了CUDA 7.0并通过在命令行上从nvcc --version
获取以下输出来验证:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Mon_Feb_16_22:59:02_CST_2015
Cuda compilation tools, release 7.0, V7.0.27
为什么OpenCV认为我安装了错误的版本?有解决方法吗?
答案 0 :(得分:2)
从CMake 2.8升级到CMake 3.2.2似乎解决了这个特殊问题。
[此答案已从评论中收集的信息中添加,以便将问题从未答复的清单中删除]