安装方法不再赘述,主要记录安装期间遇到的问题
一、 fatal error: LAPACKE_H_PATH-NOTFOUND/lapacke.h: No such file or directory #include “LAPACKE_H_PATH-NOTFOUND/lapacke.h”
原因:未找到lapacke.h文件
方法:
sudo apt-get install liblapacke-dev checkinstall
修改出现问题的文件,例如我的文件是
opencv-3.2.0/build/opencv_lapack.h
将第二行中的#include"LAPACKE_H_PATH-NOTFOUND/lapacke.h"
修改为#include"lapacke.h"
即可
二、qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory
CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1386 (message):
Found unsuitable Qt version “” from NOTFOUND,this code requires Qt 4.x
Call Stack (most recent call first):
cmake/OpenCVFindLibsGUI.cmake:34 (find_package)
CMakeLists.txt:556 (include)
– Configuring incomplete,errors occurred!
解决方案1:安装QT5库
解决方案2:修改配置文件