Added simple command line sample for Android

This commit is contained in:
Andrey Kamaev
2011-05-11 22:46:17 +00:00
parent 5e4ca22737
commit 6aea54e308
6 changed files with 153 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/sh
cd `dirname $0`
BUILD_DIR=build_armeabi
opencv_android=`pwd`/../..
opencv_build_dir=$opencv_android/$BUILD_DIR
mkdir -p $BUILD_DIR
cd $BUILD_DIR
cmake -DOpenCV_DIR=$opencv_build_dir -DARM_TARGET=armeabi -DCMAKE_TOOLCHAIN_FILE=$opencv_android/android.toolchain.cmake ..