OpenCV .so library for Android
How do I build a custom. so file for all architectures for only a select few opencv header files and class files? Is this possible?
How do I build a custom. so file for all architectures for only a select few opencv header files and class files? Is this possible?
Yes, it is possible. Add OPENCV_LIB_TYPE:=STATIC before including OpenCV.mk in your Android.mk. This string enables static linkage with OpenCV. Linker removes all unused classes and functions automatically. You cannot build the singe shared library for all architectures. If you set target architecture to all in Application.mk you've got one shared library per architecture.
@Alexander Smorkalov I tried this, but i'm getting E/OpenCV/StaticHelper(5647): OpenCV error: Cannot load info library for OpenCV
. I'm using OpenCVLoader.initDebug()
to load the library.
If you link against OpenCV statically, you do not need this call. Everything that is needed has been already added by linker.
Asked: 2013-12-29 21:49:10 -0600
Seen: 917 times
Last updated: Dec 30 '13
What library opencv is using to handle tiff file and how?
Transposing and Flipping Frames on Android Camera
Implements CvViewFrameListener2 not found
Using default BaseLoaderCallback in an android service
Java API - Core.add() method not working!? How to add 2 Mats?
I want to know how can i do haartraining on android
OpenCV app doesnt work since Manager Update
createEigenFaceRecognizer-android
@Torcellite Did you find a solution?