Fixed detection of OpenBLAS and LAPACK on Ubuntu 18.04 with arch x86-64#19343
Fixed detection of OpenBLAS and LAPACK on Ubuntu 18.04 with arch x86-64#19343HungWoeiNeoh wants to merge 1 commit intoopencv:4.xfrom
Conversation
|
Please provide details about use case. Docker file is preferable: Results: So this patch doesn't seem to work. P.S. Always clear CMake cache (build directory) if dependencies are changed. We need reproducible results. |
|
@HungWoeiNeoh , I tried to fix the detection too, but did not finish it: mshabunin@651e95e As I remember it was important to find correct header using |
|
Hi, what do you mean by use case? Do you mean the reason I'm building OpenCV? You still need to install |
|
jenkins cn please retry a build |
|
I believe you should inform this issue at the OpenBLAS Ubuntu/distrib maintainer level. Because when you build OpenBLAS from source, it will correctly install the While in Bionic (18.04): In Impish: |
|
@alalek, shall we backport alway-available-Lapack patch to the master branch? If I remember correctly, BLAS/Lapack detection part was significantly reworked there |
Fixes the cmake detection of OpenBLAS and LAPACK libraries on Ubuntu with arch x86-64
A similar fix can be applied for other architectures too.
Source: #9953, only partially resolves it.
Tested this on a Docker container, Ubuntu 18.04 with GCC 7.5.0, OpenCV builds successfully, and the relevant cmake output for OpenBLAS detection is as follows:
This patch has not been tested on other architectures/OS, but it should not affect any other architecture/OS
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.