Ask Your Question

Native binary '' depends on '', which cannot be located

asked 2019-04-29 13:19:05 -0500

Jill gravatar image

updated 2019-04-29 13:24:58 -0500

I can successfully build java opencv shared library on linux redhat 7 using the following command:

tar -xf 4.1.0.tar.gz
mv opencv-4.1.0 src

mkdir -p $install
mkdir -p $install/lib

cd src
mkdir build
cd build


make -jnproc

However, when another project tries to use, the following error would be given:
Native binary '' depends on '', 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!

edit retag flag offensive close merge delete


However, when another project tries to use,

huh, wait, on another machine / os / environment ? your might be non-portable.

you built it on a box where openblas is available (so it's using it), but run it on a box, where it is not so ?

berak gravatar imageberak ( 2019-04-30 03:50:37 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2019-04-30 12:33:52 -0500

Jill gravatar image

Yes, this is exactly the situation, I have to build it in one environment and distribute the to other machines to use it. And the machine I used to build the .so has openblas installed, but the machines which are going to use it doesn't have openblas. I would like to know is it possible to change some flag to prevent cmake from finding openblas, so the .so file built from it would not require

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-04-29 13:19:05 -0500

Seen: 151 times

Last updated: Apr 29 '19