fata error: LAPACKE_H_PATH-NOTFOUND when building OpenCV 3.2
Hello
I get this error when building OpenCV 3.2:
In file included from /home/username/opencv-3.2.0/opencv/modules/core/src/hal_internal.cpp:49:0: /home/username/opencv-3.2.0/opencv/build/opencv_lapack.h:2:45: fatal error: LAPACKE_H_PATH-NOTFOUND/lapacke.h: No such file or directory #include "LAPACKE_H_PATH-NOTFOUND/lapacke.h"
LAPACK and BLAS are installed.. Any ideas? Didn't get these errors with 3.1 or previous 2.4.X versions...
Thanks, AP
LAPACKE_H_PATH-NOTFOUND it is like a cmake message.
Does cmake find lapack?
I was surprised to find it within include statement.. And yes, look like it does.
I'm using vs 2015 with mkl lapack so I cannot test. May be you can try to set LAPACK_INCLUDE_DIR with your own path in cmake process.
Don't forget to delete cmakecache
Wait some comments about your problem and If you cannot solve it post an issue.
In opencv 3.2 many things change about lapack and blas see https://github.com/opencv/opencv/wiki...
@adiperry
I think I had the same issue. Could you try to install:
It seems to fix this failure. I'm getting other failures, like mentioned here: https://github.com/opencv/opencv/issu... Which also suggests it's LAPACK-related. (Ubuntu 14.04 with CUDA)
When setting "WITH_LAPACK=OFF" it works.
TL;DR
If you're using something like https://github.com/milq/scripts-ubuntu-debian/blob/master/install-opencv.sh (install-opencv.sh) from https://milq.github.io/install-opencv-ubuntu-debian/
The fix is to replace the line
cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON $
with
cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON -$