2011-05-10 01:22:46 +02:00
|
|
|
:: variables required for OpenCV build ::
|
2011-06-03 14:01:55 +02:00
|
|
|
:: Note: all pathes should be specified without tailing slashes!
|
2012-02-24 10:39:28 +01:00
|
|
|
SET ANDROID_NDK=C:\full\path\to\your\copy\of\android\NDK\android-ndk-r7b
|
2011-05-10 01:22:46 +02:00
|
|
|
SET CMAKE_EXE=C:\full\path\to\cmake\utility\cmake.exe
|
2011-11-16 15:32:10 +01:00
|
|
|
SET MAKE_EXE=%ANDROID_NDK%\prebuilt\windows\bin\make.exe
|
2011-05-10 01:22:46 +02:00
|
|
|
|
|
|
|
:: variables required for android-opencv build ::
|
|
|
|
SET ANDROID_SDK=C:\full\path\to\your\copy\of\android\SDK\android-sdk-windows
|
|
|
|
SET ANT_DIR=C:\full\path\to\ant\directory\apache-ant-1.8.2
|
|
|
|
SET JAVA_HOME=C:\full\path\to\JDK\jdk1.6.0_25
|
|
|
|
|
|
|
|
:: configuration options ::
|
|
|
|
:::: general ARM-V7 settings
|
2011-11-16 15:32:10 +01:00
|
|
|
SET ANDROID_ABI=armeabi-v7a
|
2011-05-10 01:22:46 +02:00
|
|
|
SET BUILD_DIR=build
|
|
|
|
|
2011-11-16 15:32:10 +01:00
|
|
|
:::: uncomment following lines to compile for old emulator or old device
|
|
|
|
::SET ANDROID_ABI=armeabi
|
2011-05-10 01:22:46 +02:00
|
|
|
::SET BUILD_DIR=build_armeabi
|
|
|
|
|
|
|
|
:::: uncomment following lines to compile for ARM-V7 with NEON support
|
2011-11-16 15:32:10 +01:00
|
|
|
::SET ANDROID_ABI=armeabi-v7a with NEON
|
2011-05-10 01:22:46 +02:00
|
|
|
::SET BUILD_DIR=build_neon
|
|
|
|
|
2011-11-16 15:32:10 +01:00
|
|
|
:::: uncomment following lines to compile for x86
|
|
|
|
::SET ANDROID_ABI=x86
|
|
|
|
::SET BUILD_DIR=build_x86
|
|
|
|
|
2011-05-10 01:22:46 +02:00
|
|
|
:::: other options
|
2012-02-24 10:39:28 +01:00
|
|
|
::SET ANDROID_NATIVE_API_LEVEL=8 &:: android-3 is enough for native part of OpenCV but android-8 is required for Java API
|