Forum > C++ > libs/armeabi libs/armeabi-v7a libs/x86

libs/armeabi libs/armeabi-v7a libs/x86

By jptsetung Posted 2012-06-27 10:45 Comments 2
jptsetung
  • Posts: 32

I’m trying to understand why libcurl, libjpeg, libpng and lixml2 are provided with 3 different architectures. Does it depend on the OS you’re developing on or on the target device you are developing for?
If I develop on a macosx intel based, can I keep only libs/x86 ?

zhangxm
  • Posts: 2082
  • Location: Xiamen, China

#1 RE: 2012-07-02 03:49

Please refer NDK_ROOT/docs/CPU-FEATURES.html and NDK_ROOT/docs/CPU-ARCH-ABIS.html for more information.

libs under libs/armeabi can be used for all Android devices that use arm.
But if the device support armeabi-v7a, use libs under libs/armeabi-v7a can get better performance.

libs under libs/x86 can only be used on Android devices that use x86.

jptsetung
  • Posts: 32

#2 RE: 2012-07-02 13:18

Thx, good readings. This is a bit more clear. I’ve seen the a variable \$(TARGET_ARCH_ABI) is used in the Android.mk of the libraries (curl, jpeg, …). I’m not sure what’s the value of this variable but I guess it’s ARMEABI. If I understand correctly ARMEABI is compatible with all android devices. I still don’t understand what’s the sue of x86ABI, maybe for the simulator?

Loggin to reply

Copyright © 2010 - 2013 Cocos2d-x.orgClustrmaps