Skip to content

Instantly share code, notes, and snippets.

@beta
Last active March 13, 2016 05:16
Show Gist options
  • Save beta/494041c0907610882775 to your computer and use it in GitHub Desktop.
Save beta/494041c0907610882775 to your computer and use it in GitHub Desktop.
Codes for blog "Using Native OpenCV Code in Android Projects"
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
OPENCV_INSTALL_MODULES:=on
OPENCV_CAMERA_MODULES:=on
OPENCV_LIB_TYPE := STATIC
include $(LOCAL_PATH)/OpenCV.mk
LOCAL_MODULE := CvExample
LOCAL_SRC_FILES := com_example_yourapp_CvUtil.cpp cv.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_LDLIBS += -lm -llog
include $(BUILD_SHARED_LIBRARY)
APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptions
APP_ABI := all
APP_PLATFORM := android-15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment