Reference
Introduction
- Check Android Version
- Most of Example does not run completely on Lollipop because native camera are not supported by OpenCV 2.4.10. libnative_camera_r5.0.0.so does not exist yet.
- Download Android source code and compile it
- For full build including "OpenCV Manager(or Engine)" android platform source tree is needed. Check my previous post (http://jylee-world.blogspot.kr/2013/11/android-platform-nexus-4-rooting.html)
- We get opencv_engine.apk(including libOpenCVEngine.so and libOpenCVEngine_jni.so) by setting source tree.
- Download android NDK and set ANDROID_NDK
- Download android SDK and set ANDROID_SDK
- Setup for cmake (explained in detail in the next sections)
- Modify cmake_android_arm.sh
- Combine cmake_android_service.sh)
- Apply minor source modifications (explained in detail in the next sections)
- cmake
- make
I use opencv-2.4.10-release, android-ndk-r9d(NDK), adt-bundle-linux-x86_64-20140702(SDK), android-4.4.2_r1 (Android Source)