A few scripts to each making the sample.
authorEthan Rublee <no@email>
Wed, 6 Apr 2011 18:11:54 +0000 (18:11 +0000)
committerEthan Rublee <no@email>
Wed, 6 Apr 2011 18:11:54 +0000 (18:11 +0000)
android/android-opencv/README.txt
android/android-opencv/cmake_android.sh [new file with mode: 0644]
android/android-opencv/cmake_android_neon.sh [new file with mode: 0644]
android/apps/OpenCV_SAMPLE/cmake_android_neon.sh [new file with mode: 0644]
android/cmake_android_neon.sh [new file with mode: 0644]

index c7f2195..8082add 100644 (file)
@@ -1,13 +1,15 @@
 =========================================
 CMake Build
 =========================================
+#path to the android build of opencv
+opencv_dir=`pwd`/../build
 mkdir build
 cd build
-cmake -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN ..
+cmake -DOpenCV_DIR=$opencv_dir -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN ..
 
 =========================================
 Android Build
 =========================================
 sh project_create.sh
 ant compile
-ant install
+
diff --git a/android/android-opencv/cmake_android.sh b/android/android-opencv/cmake_android.sh
new file mode 100644 (file)
index 0000000..61ebe07
--- /dev/null
@@ -0,0 +1,5 @@
+opencv_dir=`pwd`/../build
+mkdir build
+cd build
+cmake -DOpenCVDIR=$opencv_dir -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN ..
+
diff --git a/android/android-opencv/cmake_android_neon.sh b/android/android-opencv/cmake_android_neon.sh
new file mode 100644 (file)
index 0000000..fa95bd9
--- /dev/null
@@ -0,0 +1,5 @@
+opencv_dir=`pwd`/../build_neon
+mkdir build_neon
+cd build_neon
+cmake -DOpenCV_DIR=$opencv_dir -DARM_TARGETS="armeabi-v7a with NEON" -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN ..
+
diff --git a/android/apps/OpenCV_SAMPLE/cmake_android_neon.sh b/android/apps/OpenCV_SAMPLE/cmake_android_neon.sh
new file mode 100644 (file)
index 0000000..66a680e
--- /dev/null
@@ -0,0 +1,4 @@
+mkdir build_neon
+cd build_neon
+cmake -DOpenCV_DIR=../../../build_neon -DAndroidOpenCV_DIR=../../../android-opencv/build_neon -DARM_TARGETS="armeabi-v7a with NEON" -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN ..
+
diff --git a/android/cmake_android_neon.sh b/android/cmake_android_neon.sh
new file mode 100644 (file)
index 0000000..9d63e11
--- /dev/null
@@ -0,0 +1,4 @@
+mkdir build_neon
+cd build_neon
+cmake -C ../CMakeCache.android.initial.cmake -DARM_TARGETS="armeabi-v7a with NEON" -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN ../..
+