Debuging without QtCreator

Gabi Julien gabi.julien at gmail.com
Sun May 6 17:26:02 UTC 2012


Hi,

I am a new guy here since today but here is how I debug my application
outside of QtCreator:

$ cd $YOUR_APP_PATH/android
$ mkdir jni && touch jni/Android.mk
$ rm obj/local/armeabi/gdb.setup
$ ndk-gdb --start

This command from the Android NDK will do all the work for you. The "touch
jni/Android.mk" is because the script expects this file to be available
which is not the case with Necessitas. The "rm obj/local/armeabi/gdb.setup"
thing is needed if you run the script more then once.

In addition, you might want to set the path to debug symbols in gdb this
way:

(gdb) set solib-search-path $YOUR_APP_PATH/android/libs/armeabi/

Regards,
Gabi Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/necessitas-devel/attachments/20120506/c6dd2c31/attachment.html>


More information about the Necessitas-devel mailing list