Where do we get the .so files for the native library for javacv?

So I have a problem running some javaCV code, and although I have seen many fixes on the Internet for it, no one worked.

Exact error: java.lang.UnsatisfiedLinkError: /tmp/javacpp/libjniopencv_core.so cannot open the shared objects file: there is no such file or directory

I looked at / usr / local / lib (where it should look), and I have a bunch of shared objects in this directory like libopencv_core.so.2.4. However, none of them have the name jni. It makes me think that I missed a step. Where are the opencv jni files due to which files should have appeared?

I work on a Raspberry Pi (ARM), if that matters.

+4
source share
1 answer

I am going to answer here since yesterday I answered by email, and this approach solved the problem today in the laboratory. (I’m the mentor of a robotics team trying to get javacv to work.)

We refused to deal with it and used Jeremy downloads . This worked better as the versions were compatible with each other. We still don't have the jni.so file, but older versions of javacv don't seem to use it.

I also noticed that the instructions for Android give a step to compile jni, but not on Linux. If we go back to recompilation, this will be the next task. Since it takes four hours to compile, using Jeremy, precompiled for Raspberry Pi files, is much better.

+1
source

All Articles