1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

adding cmake based android scripts and a reusable android library - samples to follow - haven't tested yet completely

This commit is contained in:
Ethan Rublee
2010-09-22 01:47:11 +00:00
parent bd829b8f7c
commit fbac20273c
66 changed files with 13419 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
Author: Ethan Rublee
email: ethan.rublee@gmail.com
To build with cmake:
mkdir build
cd build
cmake ..
make
Make sure to set the path in the cache for the crystax ndk available
here:
http://www.crystax.net/android/ndk-r4.php
to include in an android project -
just include the generated android-opencv.mk in you android ndk project
with:
include android-opencv.mk
this defines OPENCV_INCLUDES and OPENCV_LIBS - which you should add to your
makefiles like:
#define OPENCV_INCLUDES and OPENCV_LIBS
include $(PATH_TO_OPENCV_ANDROID_BUILD)/android-opencv.mk
LOCAL_LDLIBS += $(OPENCV_LIBS)
LOCAL_C_INCLUDES += $(OPENCV_INCLUDES)