Forum Replies Created
-
AuthorPosts
-
John GabyParticipant
What I have now works on most devices, and I am deathly afraid of screwing that up and not being able to go back. I think I might try installing on another computer first. Thanks for your help.
John GabyParticipantI would be willing to upgrade my version if I were sure that it would fix the problem. Installing a trial version is not very attractive because if it didn’t fix the problem, I would be stuck with a version that will time out. Do you know of anyone who has successfully used it with the Amazon Fire TV box?
Thanks.
John GabyParticipantI am using version 2.7. After I dismiss the ‘Failed to start Android app’ dialog box, the Output window is empty.
John GabyParticipantHmm, there does not seem to be a ‘VisualGDB’ option under Tools->Options.
Yes, I am debugging com.gabysoft.flipixaaa. I am able to install the app and debug the Java portion using Eclipse. The app mostly runs fine on the Amazon TV box, but there are some issues that I am trying to debug.
Thanks.
John GabyParticipantI will give that a try, thanks.
John GabyParticipantOk, here is what I did. I started the app and set a breakpoint. I then executed the code which contained the breakpoint and the program broke like normal. I then waited and eventually the app seemed to close (i.e. the screen went back to the home page). At this point, I can no longer resume or look at data. I have attached the log.
As a side note, I sometimes have the app close during the startup process. It seems like if the startup takes longer than 20 seconds or so, something kills the app. This may be related to the breakpoint issue.
Thanks.
John GabyParticipantThanks.
John GabyParticipantOk, I now have it running on actual hardware and I must say it looks pretty sweet. I am going to need to play with it a bit more, but it looks like you guys deserve a nice kudos.
I have one more questions and a small snivel.
1) Is it possible to debug both the native and java sides at the same time, and if so how do I do that?
2) When I import a project it does not appear to be reading the Android.mk file and picking up all of the c and cpp source files. The only one it adds is the basic xxx-jni.c file. I have to add the rest manually. This is not a major deal, but I do have a fair number of projects to import and it would have been nice if it just worked.
Thanks.
John GabyParticipantI do realize that, I have been working on Android for a long time, in fact, I have been able to get source code debugging of native code working with Eclipse in the past. However it has always been flakey and with the most recent set of tools I don’t seem to be able to get it to work at all anymore. This is why I am looking at your tool.
I did my initial testing using a virtual machine because I didn’t want you stuff to mess up my build machine. I am now confident enough that that won’t happen and am going to try it out on my build machine with a real device. As I said, if I can get this to work well, it will be well worth the money.
Thanks.
By the way saying the the emulator is ‘unbelievably slow’ is actually quite charitable. It is slow to the point of ALMOST being unusable.
John GabyParticipantThat fixes the problem, thanks.
I now have it running and this time was able to stop on a breakpoint. However, it is very slow and unresponsive and the ‘GDB command Timeout’ dialog keeps popping up. Also, sometimes when I try to continue I get an error that tells me ‘The debugger cannot continue running the process’. I must confess, however, that I am testing this on a virtual machine using the Android emulator. I am going to have to try this now on my actual build machine with a real device. I can tell you, however, that if I can get this to work, it will be a pretty sweet tool and well worth the money.
Thanks for your help.
John GabyParticipantHere is the ‘build.xml’ file from the root directory of the project. Is this what you wanted? Note that I am still able to build and run this project using Eclipse.
classname=”com.android.ant.SetupTask”
classpathref=”android.antlibs” />
John GabyParticipantI rebooted the machine but still no luck. I am still getting the same error as before. To double check the setting of ANDROID_SDK_ROOT I opened a command prompt and typed:
dir %ANDROID_SDK_ROOT%
and it displayed the correct directory.
Thanks
John GabyParticipantI also want to reiterate that the very FIRST time I built this project, I did NOT get any errors (even without ANDROID_SKD_ROOT being set) and I WAS able to run the project successfully (although I didn’t get the breakpoints to work).
Thanks.
John GabyParticipantThat does not seem to help. The following is a screen shot of the environment variable I added:
The following is the result of a ‘Rebuild Solution’:
Rebuild All started: Project: AndroidApp2, Configuration: Debug Win32
Performing Makefile project actions
c:android-ndkndk-build.cmd NDK_DEBUG=1 APP_PLATFORM=android-9 clean
Clean: hexlogic-jni [armeabi]
Clean: stdc++ [armeabi]
c:apache-ant-1.8.4binant.bat clean
BUILD FAILED
D:GabySoftGCodeHexLogicAndroidbuild.xml:46: taskdef class com.android.ant.SetupTask cannot be found
using the classloader AntClassLoader[]
Buildfile: D:GabySoftGCodeHexLogicAndroidbuild.xml
Total time: 0 seconds
VisualGDB: deleting D:GabySoftGCodeHexLogicAndroidbin and all its contents.
VisualGDB: deleting D:GabySoftGCodeHexLogicAndroidlibs and all its contents.
VisualGDB: deleting D:GabySoftGCodeHexLogicAndroidobj and all its contents.
c:android-ndkndk-build.cmd NDK_DEBUG=1 APP_PLATFORM=android-9
In file included from D:/GabySoft/GCode/HexLogic/Android//jni/../../../Android/cpp/GStream.cpp:1:0:
c:android-ndkplatformsandroid-9arch-armusrincludejni.h(592,13): note: the mangling of ‘va_list’ has changed in GCC 4.4
Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
“Compile thumb : hexlogic-jni <= hexlogic-jni.c
“Compile++ thumb : hexlogic-jni <= GStream.cpp
In file included from D:/GabySoft/GCode/HexLogic/Android//jni/../../../Android/cpp/GSystem.cpp:1:0:
c:android-ndkplatformsandroid-9arch-armusrincludejni.h(592,13): note: the mangling of ‘va_list’ has changed in GCC 4.4
“Compile++ thumb : hexlogic-jni <= GSystem.cpp
“Compile++ thumb : hexlogic-jni <= GWindow.cpp
In file included from D:/GabySoft/GCode/HexLogic/Android//jni/../../../Android/cpp/GWindow.cpp:1:0:
c:android-ndkplatformsandroid-9arch-armusrincludejni.h(592,13): note: the mangling of ‘va_list’ has changed in GCC 4.4
“Compile++ thumb : hexlogic-jni <= GUtil.cpp
“Compile++ thumb : hexlogic-jni <= GXml.cpp
“Compile++ thumb : hexlogic-jni <= GConfig.cpp
“Compile++ thumb : hexlogic-jni <= GJson.cpp
“Compile++ thumb : hexlogic-jni <= GMemStream.cpp
“Compile++ thumb : hexlogic-jni <= GStyle.cpp
“Compile++ thumb : hexlogic-jni <= HexLogicApp.cpp
StaticLibrary : libstdc++.a
SharedLibrary : libhexlogic-jni.so
Install : libhexlogic-jni.so => libs/armeabi/libhexlogic-jni.so
VisualGDB: Installed an updated gdbserver to D:GabySoftGCodeHexLogicAndroidlibsarmeabigdbserver
c:apache-ant-1.8.4binant.bat debug
Buildfile: D:GabySoftGCodeHexLogicAndroidbuild.xml
BUILD FAILED
D:GabySoftGCodeHexLogicAndroidbuild.xml:46: taskdef class com.android.ant.SetupTask cannot be found
using the classloader AntClassLoader[]
Total time: 0 seconds
Build log was saved at “file://c:AndroidProjectsAndroidApp2AndroidApp2DebugBuildLog.htm”
AndroidApp2 – 0 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========Thanks
-
AuthorPosts