Friday, March 15, 2013

Android SDK / NDK Debugging (device does not support the application's targetted CPU ABI)

First, just go into this assuming it is really hard.

You have two options that I can see.

First, Eclipse + CDT + NDK + ADT + SDK.
http://tools.android.com/recent/usingthendkplugin

Second, Visual Studio + WinDBG + NDK + SDK
http://www.wingdb.com/wgMobileEdition.htm
(http://ian-ni-lewis.blogspot.com/2011/01/its-like-coming-home-again.html)

I'm trying this with Cocos2d-x which makes it easier and harder at the same time.

The bad -- poor documentation, lots of unanswered questions
http://www.cocos2d-x.org/boards/6/topics/11046

The good -- ndkgbd.sh

--------------------------------------------

http://stackoverflow.com/questions/15067215/ndk-gdb-error-device-does-not-support-the-applications-targetted-cpu-abis


jni/Android.mk:26: *** Android NDK: Aborting.    .  Stop.
ERROR: The device does not support the application's targetted CPU ABIs!
       Device supports:  armeabi-v7a armeabi
       Package supports: Android NDK:

My challenge here was that I needed to add these to every static AND shared library I was building.

APP_ABI := armeabi

No comments: