I\'m trying to run NDK to compile native code to run on Atom(x86) processor as well as ARM. No matter how I set APP_ABI, NDK is generating armeabi library. Even if I put o
You should put APP_ABI variable in Application.mk file not Android.mk file.
It's written in documentation of NDK (docs/CPU-ARCH-ABIS.html file).
If you don't have an Application.mk
file, create one inside jni
folder under project root
.
project_root/jni/Application.mk
Add target compile platform to it:
APP_ABI := x86
Or platforms:
APP_ABI := armeabi armeabi-v7a x86 mips
Also you can set APP_ABI
directly to ndk-build
shell command:
ndk-build APP_ABI=x86