From 793daa138aee628bf80289191061ec8c81421bd2 Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Mon, 1 Mar 2021 13:49:58 +0000 Subject: Update documentation with instructions for building Android using NDK >= r19 Resolve COMPMID-4287 Change-Id: I01446708d2c5bc19150097890f838eef697ca081 Signed-off-by: Giorgio Arena Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5195 Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins --- docs/00_introduction.dox | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/00_introduction.dox') diff --git a/docs/00_introduction.dox b/docs/00_introduction.dox index 9579673048..7659d56e25 100644 --- a/docs/00_introduction.dox +++ b/docs/00_introduction.dox @@ -1735,16 +1735,17 @@ For Android, the library was successfully built and tested using Google's standa - clang++ from NDK r20b for arm64-v8a - clang++ from NDK r20b for arm64-v8.2-a with FP16 support -Here is a guide to create your Android standalone toolchains from the NDK. Minimum NDK version required: r18b - +For NDK r18 or older, here is a guide to create your Android standalone toolchains from the NDK: - Download the NDK r18b from here: https://developer.android.com/ndk/downloads/index.html to directory $NDK - Make sure you have Python 2.7 installed on your machine. - Generate the 32 and/or 64 toolchains by running the following commands to your toolchain dirctory $MY_TOOLCHAINS: - $NDK/build/tools/make_standalone_toolchain.py --arch arm64 --install-dir $MY_TOOLCHAINS/aarch64-linux-android-ndk-r18b --stl libc++ --api 21 $NDK/build/tools/make_standalone_toolchain.py --arch arm --install-dir $MY_TOOLCHAINS/arm-linux-android-ndk-r18b --stl libc++ --api 21 +For NDK r19 or newer, you can directly Download the NDK package for your development platform, without the need to launch the make_standalone_toolchain.py script. You can find all the prebuilt binaries inside $NDK/toolchains/llvm/prebuilt/$OS_ARCH/bin/. +@attention the building script will look for a binary named "aarch64-linux-android-clang++", while the prebuilt binaries will have their API version as a suffix to their filename (e.g. "aarch64-linux-android21-clang++"). You should copy/rename the binary removing this suffix, or - alternatively - create an alias for it. + @attention We used to use gnustl but as of NDK r17 it is deprecated so we switched to libc++ @note Make sure to add the toolchains to your PATH: -- cgit v1.2.1