【发布时间】:2017-06-03 14:45:57
【问题描述】:
对于 Python 3.4.3、Ubuntu 14.04、CUDA 8 和最新版本的 OpenCV 从 opencv 网站下载并使用以下命令:
(cv2) mona@pascal:~/computer_vision/opencv-3.2.0/build$ cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
我收到以下错误。请提出修复建议。
-- checking for module 'libgphoto2'
-- package 'libgphoto2' not found
-- ICV: Downloading ippicv_linux_20151201.tgz...
-- ICV: Unpacking ippicv_linux_20151201.tgz to /home/mona/computer_vision/opencv-3.2.0/build/3rdparty/ippicv...
-- ICV: Package successfully downloaded
-- found IPP (ICV version): 9.0.1 [9.0.1]
-- at: /home/mona/computer_vision/opencv-3.2.0/build/3rdparty/ippicv/ippicv_lnx
-- CUDA detected: 8.0
-- CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-D_FORCE_INLINES
CMake Error at cmake/OpenCVFindMKL.cmake:32 (file):
file STRINGS file "/opt/intel/mkl/include/mkl_version.h" cannot be read.
Call Stack (most recent call first):
cmake/OpenCVFindMKL.cmake:72 (get_mkl_version)
cmake/OpenCVFindLAPACK.cmake:10 (include)
CMakeLists.txt:559 (include)<!--
CMake Error at cmake/OpenCVFindMKL.cmake:90 (if):
if given arguments:
"VERSION_GREATER" "11.3.0" "OR" "VERSION_EQUAL" "11.3.0"
Unknown arguments specified
Call Stack (most recent call first):
cmake/OpenCVFindLAPACK.cmake:10 (include)
CMakeLists.txt:559 (include)
-- Configuring incomplete, errors occurred!
cmake/OpenCVFindMKL.cmake 文件中的内容如下:
http://pastebin.com/Yxq8GQTZ
Cmake日志http://pastebin.com/JQSi2me3
【问题讨论】:
-
你安装了英特尔 MKL 吗?
-
非常感谢罗伯特。似乎我有旧版本的英特尔 MKL,而我刚刚安装的新版本解决了这个问题。非常感谢您的反馈。
标签: python opencv ubuntu cmake