Hi,
I followed the instructions and have done
…
>ndk-build NDK_DEBUG=1
>ant debug
Buildfile: C:eclipseSDK_OGLES2_ANDROID_ARMV7_REL_2.10@863987SDKPackage_OGLES2Traini
ngCourseSkinningOGLES2BuildAndroidbuild.xml
-set-mode-check:
-set-debug-files:
-set-debug-mode:
-debug-obfuscation-check:
-setup:
[echo] Creating output directories if needed…
[echo] Gathering info for OGLES2Skinning…
[setup] Android SDK Tools Revision 19
[setup] Project Target: Android 2.3.3
[setup] API level: 10
[setup]
[setup]
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup]
[setup]
[setup] API<=15: Adding annotations.jar to the classpath.
[setup]
[setup]
-build-setup:
-pre-build:
-code-gen:
[echo] hasCode = false. Skipping aidl/renderscript/R.java
-pre-compile:
-compile:
[echo] hasCode = false. Skipping...
-post-compile:
-obfuscate:
-dex:
[echo] hasCode = false. Skipping...
-crunch:
[crunch] Crunching PNG Files in source dir: C:eclipseSDK_OGLES2_ANDROID_ARMV7_REL_
2.10@863987SDKPackage_OGLES2TrainingCourseSkinningOGLES2BuildAndroidres
[crunch] To destination dir: C:eclipseSDK_OGLES2_ANDROID_ARMV7_REL_2.10@863987SDK
Package_OGLES2TrainingCourseSkinningOGLES2BuildAndroidbinres
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[aapt] Creating full resource package...
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run
.
[apkbuilder] Creating OGLES2Skinning-debug-unaligned.apk and signing it with a debug ke
y...
-post-package:
-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: C:eclipseSDK_OGLES2_ANDROID_ARMV7_REL_2.10@863987SDKPacka
ge_OGLES2TrainingCourseSkinningOGLES2BuildAndroidbinOGLES2Skinning-debug.apk
[propertyfile] Creating new property file: C:eclipseSDK_OGLES2_ANDROID_ARMV7_REL_2.10
@863987SDKPackage_OGLES2TrainingCourseSkinningOGLES2BuildAndroidbinbuild.prop
[propertyfile] Updating property file: C:eclipseSDK_OGLES2_ANDROID_ARMV7_REL_2.10@863
987SDKPackage_OGLES2TrainingCourseSkinningOGLES2BuildAndroidbinbuild.prop
[propertyfile] Updating property file: C:eclipseSDK_OGLES2_ANDROID_ARMV7_REL_2.10@863
987SDKPackage_OGLES2TrainingCourseSkinningOGLES2BuildAndroidbinbuild.prop
[propertyfile] Updating property file: C:eclipseSDK_OGLES2_ANDROID_ARMV7_REL_2.10@863
987SDKPackage_OGLES2TrainingCourseSkinningOGLES2BuildAndroidbinbuild.prop
-post-build:
debug:
BUILD SUCCESSFUL
Total time: 2 seconds
>ndk-gdb --verbose
Android NDK installation path: /cygdrive/c/eclipse/android-ndk
Using default adb command: /cygdrive/c/Program Files (x86)/Android/android-sdk/platform
-tools/adb
ADB version found: Android Debug Bridge version 1.0.29
Using ADB flags:
Using auto-detected project path: .
Found package name: com.powervr.OGLES2Skinning
ABIs targetted by application: armeabi
Device API Level: 10
Device CPU ABIs: armeabi-v7a armeabi
Compatible device ABI: armeabi
Using gdb setup init: ./libs/armeabi/gdb.setup
Using toolchain prefix: /cygdrive/c/eclipse/android-ndk/toolchains/arm-linux-androideab
i-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-
Using app out directory: ./obj/local/armeabi
Found debuggable flag: false
Found gdbserver under libs/armeabi, assuming app was built with NDK_DEBUG=1
ERROR: Non-debuggable application installed on the target device.
Please re-install the debuggable version!
(1) why am I getting this error ? I have removed/reset the device but still this error pops up !
On the other hand if I do..
$ adb -d install ./bin/OGLES2Skinning-debug.apk
161 KB/s (397699 bytes in 2.402s)
pkg: /data/local/tmp/OGLES2Skinning-debug.apk
Success
mkandula@elle /cygdrive/c/eclipse/SDK_OGLES2_ANDROID_ARMV7_REL_2.10@863987/SDKPackage_O
GLES2/TrainingCourse/Skinning/OGLES2/Build/Android
$ ndk-gdb --verbose
Android NDK installation path: /cygdrive/c/eclipse/android-ndk
Using default adb command: /cygdrive/c/Program Files (x86)/Android/android-sdk/platform
-tools/adb
ADB version found: Android Debug Bridge version 1.0.29
Using ADB flags:
Using auto-detected project path: .
Found package name: com.powervr.OGLES2Skinning
ABIs targetted by application: armeabi
Device API Level: 10
Device CPU ABIs: armeabi-v7a armeabi
Compatible device ABI: armeabi
Using gdb setup init: ./libs/armeabi/gdb.setup
Using toolchain prefix: /cygdrive/c/eclipse/android-ndk/toolchains/arm-linux-androideab
i-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-
Using app out directory: ./obj/local/armeabi
Found debuggable flag: false
Found gdbserver under libs/armeabi, assuming app was built with NDK_DEBUG=1
Found device gdbserver: /data/data/com.powervr.OGLES2Skinning/lib/gdbserver
ERROR: Could not extract package's data directory. Are you sure that
your installed application is debuggable?
(2)How to go about this correcting this data directory error ?
Do understand that once the app is installed , I can click the icon and the app runs. But I am unable to debug it in any manner !!!!
mkandula2012-04-30 10:24:05