diff options
author | fuzzard <fuzzard@kodi.tv> | 2021-06-25 15:01:03 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2021-06-25 16:17:37 +1000 |
commit | 45e383ede27b2021804dac42523b8a1057fc12b9 (patch) | |
tree | 05becb7e3efbb6a65a718d59934e8397fe3daf96 /docs | |
parent | 0b333a92253ba5c8fb0cacd103d0c61c82ab3d83 (diff) |
[Docs][android] Update to recommend NDK r21e
Diffstat (limited to 'docs')
-rw-r--r-- | docs/README.Android.md | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/README.Android.md b/docs/README.Android.md index 7ce265260d..76d8161abc 100644 --- a/docs/README.Android.md +++ b/docs/README.Android.md @@ -65,7 +65,8 @@ sudo apt install autoconf build-essential curl default-jdk gawk git gperf lib32s **[back to top](#table-of-contents)** ## 3. Prerequisites -Building Kodi for Android requires Android NDK revision 20. For the SDK just use the latest available. +Building Kodi for Android requires Android NDK revision 20b. For the SDK just use the latest available. +Kodi CI/CD platforms currently use r21e for build testing and releases, so we recommend using r21e for the most tested build experience * **[Android SDK](https://developer.android.com/studio/index.html)** (Look for `Get just the command line tools`) * **[Android NDK](https://developer.android.com/ndk/downloads/index.html)** @@ -85,7 +86,7 @@ unzip $HOME/Downloads/commandlinetools-linux-6200805_latest.zip -d $HOME/android Extract Android NDK: ``` -unzip $HOME/Downloads/android-ndk-r20-linux-x86_64.zip -d $HOME/android-tools +unzip $HOME/Downloads/android-ndk-r21e-linux-x86_64.zip -d $HOME/android-tools ``` ### 3.2. Configure Android SDK @@ -112,7 +113,7 @@ keytool -genkey -keystore ~/.android/debug.keystore -v -alias androiddebugkey -d * Whenever you want to compile/develop you need to mount the image * `open ~/android-dev.dmg` * Once you have your hdd image with case sensitive hfs+ file system execute all the steps inside of this filesystem. You need to adapt all paths in this guide so that they match your local environment. As an example here is a configure line that demonstrates possible paths: - * `./configure --with-tarballs=/Users/Shared/xbmc-depends/tarballs --host=arm-linux-androideabi --with-sdk-path=/Volumes/android-dev/android/android-sdk-macosx --with-ndk-path=/Volumes/android-dev/android/android-ndk-r20 --prefix=/Volumes/android-dev/android/xbmc-depends` + * `./configure --with-tarballs=/Users/Shared/xbmc-depends/tarballs --host=arm-linux-androideabi --with-sdk-path=/Volumes/android-dev/android/android-sdk-macosx --with-ndk-path=/Volumes/android-dev/android/android-ndk-r21e --prefix=/Volumes/android-dev/android/xbmc-depends` **[back to top](#table-of-contents)** | **[back to section top](#3-prerequisites)** @@ -138,22 +139,22 @@ cd $HOME/kodi/tools/depends Configure build for aarch64: ``` -./configure --with-tarballs=$HOME/android-tools/xbmc-tarballs --host=aarch64-linux-android --with-sdk-path=$HOME/android-tools/android-sdk-linux --with-ndk-path=$HOME/android-tools/android-ndk-r20 --prefix=$HOME/android-tools/xbmc-depends +./configure --with-tarballs=$HOME/android-tools/xbmc-tarballs --host=aarch64-linux-android --with-sdk-path=$HOME/android-tools/android-sdk-linux --with-ndk-path=$HOME/android-tools/android-ndk-r21e --prefix=$HOME/android-tools/xbmc-depends ``` Or configure build for arm: ``` -./configure --with-tarballs=$HOME/android-tools/xbmc-tarballs --host=arm-linux-androideabi --with-sdk-path=$HOME/android-tools/android-sdk-linux --with-ndk-path=$HOME/android-tools/android-ndk-r20 --prefix=$HOME/android-tools/xbmc-depends +./configure --with-tarballs=$HOME/android-tools/xbmc-tarballs --host=arm-linux-androideabi --with-sdk-path=$HOME/android-tools/android-sdk-linux --with-ndk-path=$HOME/android-tools/android-ndk-r21e --prefix=$HOME/android-tools/xbmc-depends ``` Or configure build for x86: ``` -./configure --with-tarballs=$HOME/android-tools/xbmc-tarballs --host=i686-linux-android --with-sdk-path=$HOME/android-tools/android-sdk-linux --with-ndk-path=$HOME/android-tools/android-ndk-r20 --prefix=$HOME/android-tools/xbmc-depends +./configure --with-tarballs=$HOME/android-tools/xbmc-tarballs --host=i686-linux-android --with-sdk-path=$HOME/android-tools/android-sdk-linux --with-ndk-path=$HOME/android-tools/android-ndk-r21e --prefix=$HOME/android-tools/xbmc-depends ``` Or configure build for x86_64: ``` -./configure --with-tarballs=$HOME/android-tools/xbmc-tarballs --host=x86_64-linux-android --with-sdk-path=$HOME/android-tools/android-sdk-linux --with-ndk-path=$HOME/android-tools/android-ndk-r20 --prefix=$HOME/android-tools/xbmc-depends +./configure --with-tarballs=$HOME/android-tools/xbmc-tarballs --host=x86_64-linux-android --with-sdk-path=$HOME/android-tools/android-sdk-linux --with-ndk-path=$HOME/android-tools/android-ndk-r21e --prefix=$HOME/android-tools/xbmc-depends ``` > **Note:** Android x86 and x86_64 are not maintained and are not 100% sure that everything works correctly! |