Ask Your Question
-1

Android libopencv_java.so not found

asked 2014-08-26 01:15:23 -0600

yuv gravatar image

dlopen("/data/app-lib/com.ex.enzo-1/libEnzo.so") failed: dlopen failed: could not load library "libopencv_java.so" needed by ".so"; caused by library "libopencv_java.so" not found

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-08-26 03:30:46 -0600

Daniil Osokin gravatar image

Your libEnzo.so is depended from OpenCV. So make sure, you've loaded libopencv_java.so before. You can download it from sourceforge.

edit flag offensive delete link more

Comments

Thanks Daniil. Yes, I've added opencv files from opencv sdk/sdk/native/jni/include into jni folder, and set path included in android.mk file.

yuv gravatar imageyuv ( 2014-08-26 04:36:59 -0600 )edit
2

You've just set the dependency. Now load it (with System.loadLibray(...) in java or dlopen(...) in c++).

Daniil Osokin gravatar imageDaniil Osokin ( 2014-08-26 05:37:05 -0600 )edit

Yeah, I've loaded the library(with System.loadLibray(...)). But when i run the native method then i got the same error.

yuv gravatar imageyuv ( 2014-08-28 02:05:22 -0600 )edit
1

But the error message tells, that library isn't found, so figure out are there any problems with loading. You can try to load opencv with dlopen right before loading enzo and check the error message from dlerror. Don't forget, you should load opencv before enzo.

Daniil Osokin gravatar imageDaniil Osokin ( 2014-08-28 08:11:49 -0600 )edit

Question Tools

Stats

Asked: 2014-08-26 01:15:23 -0600

Seen: 3,461 times

Last updated: Aug 26 '14