android_environment.sh 1.31 KB
Newer Older
1 2 3
#!/bin/bash
#----------------------------------------------------------
# You will need:
dogmaphobic's avatar
dogmaphobic committed
4
# - Qt 5.5.x android_armv7 kit
5 6 7 8 9 10 11 12
# - Android SDK
# - Androig NDK
# - Current Java
# - ant
#----------------------------------------------------------
# Update with correct location for these
export ANDROID_HOME=~/Library/Android/sdk
export ANDROID_SDK_ROOT=~/Library/Android/sdk
dogmaphobic's avatar
dogmaphobic committed
13
export ANDROID_NDK_ROOT=~/Library/Android/sdk/ndk-bundle
14 15 16 17 18 19 20 21 22 23 24 25 26
export ANDROID_NDK_HOST=darwin-x86_64
export ANDROID_NDK_PLATFORM=/android-9
export ANDROID_NDK_TOOLCHAIN_PREFIX=arm-linux-androideabi
export ANDROID_NDK_TOOLCHAIN_VERSION=4.9
export ANDROID_NDK_TOOLS_PREFIX=arm-linux-androideabi
#----------------------------------------------------------
# To build it, run (replacing the path with where you have Qt installed)
#
# >source android_environment.sh
# cd ../
# mkdir android_build
# cd android_build
# >~/local/Qt/5.4/android_armv7/bin/qmake -r -spec android-g++ CONFIG+=debug ../qgroundcontrol/qgroundcontrol.pro
dogmaphobic's avatar
dogmaphobic committed
27
# >make -j24 install INSTALL_ROOT=./android-build/
28
# >~/local/Qt/5.4/android_armv7/bin/androiddeployqt --input ./android-libQGroundControl.so-deployment-settings.json --output ./android-build --deployment bundled --android-platform android-22 --jdk /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home --verbose --ant /usr/local/bin/ant
29
#