赞
踩
下载/生成android ndk,我使用的是android-ndk-r12b,平台支持从android-9到android-24
- CC_HOME=/home/waitor/tool/android-ndk-r12b
- BIN_PATH=$(CC_HOME)/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin
-
- CC=${BIN_PATH}/aarch64-linux-android-gcc
- CXX=${BIN_PATH}/aarch64-linux-android-g++
- AS=${BIN_PATH}/aarch64-linux-android-as
CFLAGS=-O3 -Wall -I ${CC_HOME}/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/include -I ${CC_HOME}/sources/cxx-stl/system/include -I ${CC_HOME}/sources/cxx-stl/stlport/stlport --sysroot=${NDK_HOME}/platforms/android-21/arch-arm64
注:由于从android-21才开始支持arm64,所以低版本有可能不兼容。
LFLAGS=--sysroot=${NDK_HOME}/platforms/android-21/arch
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。