java – OpenCV 2.4. 1:UnsatisfiedLinkError
•
Java
I have an Android project with native code In this native section, I use OpenCV
It compiles without any errors, but when I start my application, it cannot load my library due to unsatisfied linkerror
Cannot load library: link_image[1936]: 37 Could not load needed library 'libopencv_java.so' for 'mylibrary.so' (load_library[1091]: Library 'libopencv_java.so' not found)
I saw open CV trying to load libopencv_ java. So, but I don't need it. I don't use opencv in Java code The size of the library is > 5m
How do I compile without adding this lib to the project?
Solution
In addition to the JNI wrapper of the C opencv interface, libopencv_ java. So also contains all opencv native code
include $(CLEAR_VARS) OPENCV_LIB_TYPE:=STATIC include <your path>/OpenCV.mk
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码