please refer this link: http://developer.android.com/ndk/guides/abis.html
while specify armeabi for the APP_ABI, it should produce ARMV5TE binary in the libs/amreabi directory, instead I checked the so file of sdkbox, it is “V7”!
arm-linux-androideabi-readelf -A armeabi/libsdkbox.a will output this:
Tag_CPU_name: "7-A"
Tag_CPU_arch: v7
Tag_CPU_arch_profile: Application
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-2
while it should be something like this:
File Attributes
Tag_CPU_name: "5TE"
Tag_CPU_arch: v5TE
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
with this wrong arch, it forced my libcocos2dlua.so to be “v7” arch too. which caused me a lot of trouble since some devices need arch “v5” to work! otherwise the game crashes!
my phone didn’t crash, it took me a lot of trouble to locate this issue…
