A few scripts to each making the sample.
This commit is contained in:
parent
68534d70f3
commit
e17c30d3c2
@ -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
|
||||
|
||||
|
5
android/android-opencv/cmake_android.sh
Normal file
5
android/android-opencv/cmake_android.sh
Normal file
@ -0,0 +1,5 @@
|
||||
opencv_dir=`pwd`/../build
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DOpenCVDIR=$opencv_dir -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN ..
|
||||
|
5
android/android-opencv/cmake_android_neon.sh
Normal file
5
android/android-opencv/cmake_android_neon.sh
Normal file
@ -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 ..
|
||||
|
4
android/apps/OpenCV_SAMPLE/cmake_android_neon.sh
Normal file
4
android/apps/OpenCV_SAMPLE/cmake_android_neon.sh
Normal file
@ -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 ..
|
||||
|
4
android/cmake_android_neon.sh
Normal file
4
android/cmake_android_neon.sh
Normal file
@ -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 ../..
|
||||
|
Loading…
x
Reference in New Issue
Block a user