Skip to content

Instantly share code, notes, and snippets.

@masazdream
Created April 1, 2014 03:35
Show Gist options
  • Select an option

  • Save masazdream/9907234 to your computer and use it in GitHub Desktop.

Select an option

Save masazdream/9907234 to your computer and use it in GitHub Desktop.
OpenCVのNativeコードをAndroidでビルドする
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
OPENCV_CAMERA_MODULES:=off
include C:/opencv241/OpenCV2.4.1/OpenCV-2.4.1/share/opencv/OpenCV.mk
ifeq ("$(wildcard $(OPENCV_MK_PATH))","")
#try to load OpenCV.mk from default install location
#include $(TOOLCHAIN_PREBUILT_ROOT)/user/share/OpenCV/OpenCV.mk
include C:/opencv241/OpenCV2.4.1/OpenCV-2.4.1/share/opencv/OpenCV.mk
else
include $(OPENCV_MK_PATH)
endif
LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_SRC_FILES := IRClientAndroid.cpp
LOCAL_MODULE := IRClientAndroid
include $(BUILD_SHARED_LIBRARY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment