Ticket #63 (closed defect: fixed)
issues with ndk-gdb
| Reported by: | alesko | Owned by: | dmc |
|---|---|---|---|
| Priority: | normal | Milestone: | r7-crystax-5 |
| Component: | ndk | Version: | r7-crystax-4 |
| Severity: | normal | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: |
Description
I'm trying to build the hello-jni sample application.
When I start ndk-gdb, it fails with:
======================================================
#$ ndk-build
cp: target `./obj/local/armeabi/gdb.setup' is not a directory
/home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: 673: /home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: cannot create ABI='armeabi'
ABI='armeabi-v7a'
ABI='x86'
./obj/local/armeabi/gdb.setup: Directory nonexistent
/home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: 674: /home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: cannot create ABI='armeabi'
ABI='armeabi-v7a'
ABI='x86'
./obj/local/armeabi/gdb.setup: Directory nonexistent
/home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: 678: /home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: ABI='armeabi': not found
======================================================
A strange file is created in the project directory: ABI='armeabi'
which contains some executable code, I think.
Debug is enabled in the project and is built successfully. The apk file is copied to the device but I'm just not able to start the debugger.
I can provide more information if you need it.
regards
Change History
comment:2 Changed 3 months ago by dmc
Yes, there was bug with debug output in ndk-gdb. Please try r7-crystax-5.beta2, it should work:
http://www.crystax.net/data/android-ndk-r7-crystax-5.beta2-darwin-x86.tar.bz2 (sha1: c9a432d38ab077106979ce2016b73f7308f438d2)
http://www.crystax.net/data/android-ndk-r7-crystax-5.beta2-linux-x86.tar.bz2 (sha1: aad97030584e2bee2e94d10cc51ec8213b22584b)
http://www.crystax.net/data/android-ndk-r7-crystax-5.beta2-windows.zip (sha1: 4b8736e6fcf70fcf20c5d43e4cf16c6377fa4724)
sorry, the right command is ndk-gdb (not ndk-build).
#$ ndk-gdb
cp: target `./obj/local/armeabi/gdb.setup' is not a directory
/home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: 673: /home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: cannot create ABI='armeabi'
ABI='armeabi-v7a'
ABI='x86'
./obj/local/armeabi/gdb.setup: Directory nonexistent
/home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: 674: /home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: cannot create ABI='armeabi'
ABI='armeabi-v7a'
ABI='x86'
./obj/local/armeabi/gdb.setup: Directory nonexistent
/home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: 678: /home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: ABI='armeabi': not found
======================================================