1.配置Android-ARM64开发环境工具链:
vim ~/.profile 或者 ~/.bashrc 或者 /etc/profile
编辑环境变量文件
输入下面内容
export CROSS_TRIPLE=aarch64-linux-android
export CROSS_ROOT=/usr/${CROSS_TRIPLE}
export ANDROID_NDK=${CROSS_ROOT}
export AS=${CROSS_ROOT}/bin/llvm-as
export AR=${CROSS_ROOT}/bin/llvm-ar
export CC=${CROSS_ROOT}/bin/clang
export CXX=${CROSS_ROOT}/bin/clang++
export LD=${CROSS_ROOT}/bin/ld
export ANDROID_NDK_REVISION=25b
export ANDROID_API=23
export CMAKE_TOOLCHAIN_FILE=${CROSS_ROOT}/Toolchain.cmake
编辑完成后输入wq保存环境变量:
2.参考这个docker文件的命令来配置:
https://github.com/do