java - OpenCV 2.4.1: UnsatisfiedLinkError -


i have android project, has native code. in native part use opencv. compiles , works ok when use opencv 2.3.1, when tried switch version 2.4.1, faced problem:

it compiles without errors, when start app, can't load library because of unsatisfiedlinkerror.

cannot load library: link_image[1936]:    37 not load needed library 'libopencv_java.so' 'mylibrary.so' (load_library[1091]: library 'libopencv_java.so' not found) 

i see open cv tries load libopencv_java.so, not need , don't use opencv in java code. library's size >5m.

how compile without adding lib project?

the libopencv_java.so in addition jni wrappers c++ opencv interface contains opencv native code.
when build jni library opencv 2.4 android can either link dynamically libopencv_java.so (default option) , include apk or link statically adding option explicitly:

include $(clear_vars) opencv_lib_type:=static include <your path>/opencv.mk 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -