I can successfully build java opencv shared library libopencv_java410.so using the following command:
wget https://github.com/opencv/opencv/archive/4.1.0.tar.gz
tar -xf 4.1.0.tar.gz mv opencv-4.1.0 src
install=pwd
/release/install
mkdir -p $install
mkdir -p $install/lib
cd src mkdir build cd build
../../cmake-3.11.4/cmake/bin/cmake -DBUILD_SHARED_LIBS=OFF \ -DCMAKE_BUILD_TYPE=RELEASE \ -DBUILD_EXAMPLES=OFF \ -DBUILD_TESTS=OFF \ -DBUILD_PERF_TESTS=off \ -DWITH_IPP=OFF \ -DBUILD_PNG=ON \ -DBUILD_JPEG=ON \ -DBUILD_TIFF=ON \ -DBUILD_WEBP=ON ..
make -jnproc
However, when another project tries to use libopencv_java410.so, the following error would be given:
Native binary 'libopencv_java410.so' depends on 'libopenblas.so.0', which cannot be located
I checked the output of cmake, the lines about openblas are:
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
I am not using the deep learning features of opencv, so I don't think I need to install openblas. How can I get rid of this error? Thank you very much!