c - Target exe for Android ABI(ndk build) -
i have android system 2 different cpu abi - armeabi-v7a , x64
.for 1 have build application code working.my application (in c language) anyway doesnt run either of platforms. or there common tool chain can build same. arm-eabi-gcc?
the ndk contains toolchains need run program on android platforms.
to setup architectures need compile to, should set app_abi
variable inside application.mk or pass ndk-build
command.
app_abi:=all
make ndk project being built supported architectures: armeabi, armeabi-v7a, arm64-v8a, x86, x86_64, mips, mips64.
you can list architectures want build for: app_abi:= x86_64 x86 armeabi-v7a arm64-v8a
, use all32
, all64
shortcuts 32-bit , 64-bit architectures.
to determine platforms supported target device, can call adb shell getprop ro.product.cpu.abi
(preferred arch) , adb shell getprop ro.product.cpu.abi2
(second arch).
starting android 5.0, use adb shell getprop ro.product.cpu.abilist
instead, returns list of supported abis, sorted in preference order.
Comments
Post a Comment