I compiled the libIrrlicht.a file by running ndk-build from source/Irrlicht/Android and then cd'ed into the project directory, did ndk-build and ant debug and there were no critical errors.
I have configured adb to work wirelessly and used it to install the HelloWorldMobile-debug.apk app to my phone and ran ndk-gdb --start --verbose bin/HelloWorldMobile-debug.apk.
And now the app just crashes. I do not know what's the problem because i don't see any errors in gdb nor catlog.
Does anyone else have a clue?
GDB output
Code: Select all
Android NDK installation path: /opt/android-ndk64
Using default adb command: /opt/android-sdk/platform-tools/adb
ADB version found: Android Debug Bridge version 1.0.31
Using ADB flags:
Using JDB command: /opt/java/bin/jdb
Using auto-detected project path: .
Found package name: com.irrlicht.example
ABIs targetted by application: armeabi
Device API Level: 19
Device CPU ABIs: armeabi-v7a armeabi
Compatible device ABI: armeabi
Using gdb setup init: ./libs/armeabi/gdb.setup
Using toolchain prefix: /opt/android-ndk64/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
Using app out directory: ./obj/local/armeabi
Found debuggable flag: true
Found data directory: '/data/data/com.irrlicht.example'
Found device gdbserver: /data/data/com.irrlicht.example/lib/gdbserver
Found first launchable activity: android.app.NativeActivity
Launching activity: com.irrlicht.example/android.app.NativeActivity
## COMMAND: adb_cmd shell am start -D -n com.irrlicht.example/android.app.NativeActivity
WARNING: linker: app_process has text relocations. This is wasting memory and is a security risk. Please fix.
WARNING: linker: app_process has text relocations. This is wasting memory and is a security risk. Please fix.
Starting: Intent { cmp=com.irrlicht.example/android.app.NativeActivity }
## COMMAND: adb_cmd shell sleep 2
Found running PID: 15330
Launched gdbserver succesfully.
Setup network redirection
## COMMAND: adb_cmd forward tcp:5039 localfilesystem:/data/data/com.irrlicht.example/debug-socket
## COMMAND: adb_cmd shell run-as com.irrlicht.example /data/data/com.irrlicht.example/lib/gdbserver +debug-socket --attach 15330
## COMMAND: adb_cmd pull /system/bin/app_process ./obj/local/armeabi/app_process
/data/data/com.irrlicht.example/lib/gdbserver[1]: .�aN�RB��c���6�~6��{�������c: not found
/data/data/com.irrlicht.example/lib/gdbserver: no closing quote
199 KB/s (21980 bytes in 0.107s)
Pulled app_process from device/emulator.
## COMMAND: adb_cmd pull /system/bin/linker ./obj/local/armeabi/linker
451 KB/s (63664 bytes in 0.137s)
Pulled linker from device/emulator.
## COMMAND: adb_cmd pull /system/lib/libc.so ./obj/local/armeabi/libc.so
783 KB/s (310652 bytes in 0.387s)
Pulled libc.so from device/emulator.
Setup JDB connection
## COMMAND: adb_cmd forward tcp:65534 jdwp:15330
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
Initializing jdb ...
> Input stream closed.
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-linux-android".
For bug reporting instructions, please see:
<http://source.android.com/source/report-bugs.html>.
./obj/local/armeabi/gdb.setup:4: Error in sourced command file:
Remote communication error. Target disconnected.: Connection reset by peer
(gdb) q
http://pastebin.com/J7raG9GR