Added "fat" mode for Java wrapper

This commit is contained in:
Andrey Kamaev
2012-03-23 17:03:05 +00:00
parent 0aa74f3846
commit 9b2d7e19db
9 changed files with 101 additions and 30 deletions

View File

@@ -2,6 +2,9 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
OPENCV_LIB_TYPE:=STATIC
OPENCV_INSTALL_MODULES:=on
include ../includeOpenCV.mk
ifeq ("$(wildcard $(OPENCV_MK_PATH))","")
#try to load OpenCV.mk from default install location

View File

@@ -24,6 +24,10 @@ class Sample3View extends SampleViewBase {
public native void FindFeatures(int width, int height, byte yuv[], int[] rgba);
static {
try {
System.loadLibrary("opencv_java");
} catch(Exception e) {
}
System.loadLibrary("native_sample");
}
}