If you want to use the Java
API for OpenCV, you can check out this post .
However, if you want to use pre-created static OpenCV libraries with C/C++
on the NDK side, then you only need Android.mk
and Application.mk
. In my version of these .mk
files .mk
I dynamically load the necessary pre-built libraries from a location on my disk. Therefore, when building .mk
files load the required static libraries.
Android.mk
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS)
Application.mk
APP_STL := gnustl_static APP_CPPFLAGS += -fexceptions -frtti -std=c++11 -D__STDC_CONSTANT_MACROS APP_ABI := all APP_PLATFORM=android-14
Zdar source share