Skip to content

Commit

Permalink
README: Update with Android instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Sep 17, 2017
1 parent d1f4661 commit 4c2313a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
cmake ../AtCore-Gui \
# AtCore-Gui

export ANDROID_NDK=/opt/android-ndk/
# note the _ROOT postfix here, different pattern
export ANDROID_SDK_ROOT=/opt/android-sdk/
export Qt5_android=/opt/android-qt5/5.9.1/armeabi/
export PATH=/opt/android-sdk/platform-tools/:$PATH
# adapt the following path to your ant installation
export ANT=/usr/bin/ant
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk/

cmake ../AtCore-Gui \
-DCMAKE_TOOLCHAIN_FILE=/usr/share/ECM/toolchain/Android.cmake \
-DECM_ADDITIONAL_FIND_ROOT_PATH=/opt/android-qt5/5.9.1/armeabi/ \
-DCMAKE_MODULE_PATH=/opt/android-qt5/5.9.1/armeabi/lib/cmake/ \
Expand All @@ -10,6 +21,7 @@
-DQt5Core_DIR=/opt/android-qt5/5.9.1/armeabi/lib/cmake/Qt5Core/ \
-DQTANDROID_EXPORTED_TARGET=atcore-gui -DANDROID_APK_DIR=/home/patrick/git/patrick/AtCore-Gui/


make create-apk-atcore-gui

./atcore-gui_build_apk/build/outputs/apk/atcore-gui_build_apk-debug.apk

0 comments on commit 4c2313a

Please sign in to comment.