Tested on Debian 10:
Follow the doc instructions to install the android 9 platform and the
NDK, then:
cd depends
export ANDROID_SDK=$HOME/Android/Sdk
export ANDROID_NDK=${ANDROID_SDK}/ndk/21.0.6113669
export ANDROID_TOOLCHAIN_BIN=${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin
export ANDROID_API_LEVEL=28
make build-android-aarch64
cd ..
./autogen.sh
mkdir buildAutotoolsAndroidAArch64
cd buildAutotoolsAndroidAArch64
make -j42
Also built the depends for all the other android architectures.
Example build with cmake (but no Qt, see summary):
cmake -GNinja .. \
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake
\
-DCMAKE_FIND_ROOT_PATH=${PWD}/../depends/aarch64-linux-android \
-DANDROID_ABI=arm64-v8a \
-DANDROID_NATIVE_API_LEVEL=${ANDROID_API_LEVEL}