简体   繁体   中英

OpenCV can't find the right version of CUDA

I installed OpenCV 3.0.0 but I'm having troubles any C++ or Python code using OpenCV. For testing, I went into the directory opencv-3.0.0/samples and ran cmake to build the samples. I got the following error:

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)

However, I'm pretty sure that I have the CUDA 7.0 installed and I verified by getting the following output from nvcc --version on the command line:

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

Why might OpenCV think that I got the wrong version installed? Is there a workaround for this?

Upgrading from CMake 2.8 to CMake 3.2.2 seems to have solved this particular issue.

[This answer has been added from information gleaned from comments in order to get the question off the unanswered list]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM