diff --git a/android/android-opencv/README.txt b/android/android-opencv/README.txt index c7f2195f5..8082add89 100644 --- a/android/android-opencv/README.txt +++ b/android/android-opencv/README.txt @@ -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 index 000000000..61ebe0793 --- /dev/null +++ b/android/android-opencv/cmake_android.sh @@ -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 index 000000000..fa95bd9af --- /dev/null +++ b/android/android-opencv/cmake_android_neon.sh @@ -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 index 000000000..66a680e59 --- /dev/null +++ b/android/apps/OpenCV_SAMPLE/cmake_android_neon.sh @@ -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 index 000000000..9d63e1111 --- /dev/null +++ b/android/cmake_android_neon.sh @@ -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 ../.. +