![]() |
QtCreator and madde on Windows [on phone debug problem]
Hello,
Is it possible to run an application in debug mode directly on the phone using QtCreator and madde? I fallowed the steps described on wiki and I'm able to run the application on the phone but it does not stop in any breaktpoint. Also I see some warnings like: .dynamic section for "c:/madde/0.6.14/sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/lib/libQtCore.so.4" is not at the expected address (wrong library or version mismatch?) .dynamic section for "c:/madde/0.6.14/sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/lib/libm.so.6" is not at the expected address difference appears to be caused by prelink, adjusting expectations ... I have QT version 4.6.2 I think in madde Qt Maemo version is 4.5.3. In N900 /usr/lib i found alot of libQt*.so.4.5.3 When i test the connection with Qt Creator Maemo Device config i see the list of Qt packages being 4.5.3 Thanks. Interesting discovery: The madde application on phone creates an ip for the phone usb. Standard is 192.168.2.15. It's possible to connect with putty to the phone using user developer and the generated pwd. This way the XTerminal is moved to the computer and it's possible to use the the keyboard and mouse and still work directly on the phone. |
Re: QtCreator and madde on Windows
Was someone able to make remote debugging to an application running on N900 using QTCreator and Madde on windows?
Right now after i fallowed all the steps from wiki: http://wiki.maemo.org/MADDE/QtCreato...on_for_windows I can't debug. The application is running but is not stopping in any breakpoint. Should i do something else from the above described steps? please give me some tips :) |
Re: QtCreator and madde on Windows
is this about remote debugging with gdbserver (too lazy to check out ;)
If this is the case, current toolchain contains too old gdb. next release will ship the same compilers but newer gdb in toolchain component. |
Re: QtCreator and madde on Windows
I'll bump this again.
I've just notice in QtCreator Debugger window this error: Code:
<43-break-insert "\"main.cpp\":5"i tried to add a startup script in options->debug->gdb->startup script with 1 line inside: Code:
directory "F:\\QTCreatorProjects\\fifthProject\\debug"madde gdb version is: Code:
~"GNU gdb (GDB) 6.6.50.20070821-cvs\n"I start the gdbserver on device using: gdbserver 192.168.2.15:10000 binaryfile when i start the debug session from qt creator(F5) i see: remote debugging from host 192.168.2.14 on phone GNU gdbserver version is 6.8.50.20090417 if this is the proble: Quote:
Thanks alot |
Re: QtCreator and madde on Windows
Quote:
/toolchain/<toolchain>/bin/arm-none-linux-gnueabi-gdb.exe from there to 0.6.14 madde, and recreate target. We'll see where and how to provide newer cross-gdb:s in the beginning of next week. |
Re: QtCreator and madde on Windows
Hi,
Been trying to get a newer version of QtCreator per instructions on http://wiki.maemo.org/MADDE/QtCreato...on_for_windows When opening up page http://qt.nokia.com/developer/qt-snapshots and trying to go into ftp://ftp.qt.nokia.com/qtcreator/snapshots/ a blank page opens but that's about it. Can anybody provide a working link for a windows binary >= 1.3.80 Best Regards, Pommi |
Re: QtCreator and madde on Windows
ftp://ftp.qt.nokia.com/qtcreator/snapshots/
and any subfolder under there that has a .exe in it (02 24 is the one from the wiki, there is a later one 1.3.81 in 3rd march |
Re: QtCreator and madde on Windows
note if you have a router and your pc is wifi/wired to it, you can just put wifi on in the n900 and use that ip.. no need for pc connectivity solution
|
Re: QtCreator and madde on Windows
Quote:
Looks like the same link I was trying, still no luck. All I get is a blank page... |
Re: QtCreator and madde on Windows
|
Re: QtCreator and madde on Windows
A quick update - after trying with FF, Opera and Chrome finally managed to get the newer version of the Creator - with a different computer. Which is supposed to have identical setup...oh well afternoon well spent..
Thanks to everybody who offered help... |
Re: QtCreator and madde on Windows
I was gonna say, I used IE6 for that link and it showed up fine..
|
Re: QtCreator and madde on Windows
Quote:
but it's not always a cert that the latest folder contains the latest of any particular flavour of build.. e.g. yesterday latest was pointing to 2010-03-08 but that folder didnt contain any windows binary version of qt.. this might lead to confusion.. |
Re: QtCreator and madde on Windows
could any one help me to get this working. followed the wiki until you get to the bit that says to press the rebuild button to turn the cross from red to green tick. at this point it starts doing the right thing then it stops with this error message.
Helper Build Log: Building debugging helper library in d:/MADDE/0.6.14/sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/share/qt4/qtc-debugging-helper/ Running D:/madde/0.6.14/bin/make.exe distclean... rm -f gdbmacros.o rm -f *~ core *.core rm -f libgdbmacros.so.1.0.0 rm -f libgdbmacros.so libgdbmacros.so.1 libgdbmacros.so.1.0 libgdbmacros.a rm -f Makefile Running d:/madde/0.6.14/targets/fremantle-qt-0951/bin/qmake.exe ... Running D:/madde/0.6.14/bin/make.exe ... g++ -c -pipe -O3 -g -Wall -W -D_REENTRANT -fPIC -DUSE_QT_GUI=1 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../mkspecs/default -I. -I../../../include/qt4/QtCore -I../../../include/qt4/QtGui -I../../../include/qt4 -I. -o gdbmacros.o gdbmacros.cpp gdbmacros.cpp: In function 'void<unnamed>::qDumpQAbstractItem(<unnamed>::QDum per&)': gdbmacros.cpp:1079: warning: dereferencing type-punned pointer will break strict-aliasing rules can any body help me sort this out. i appritiate it is a technical preview but maybe this is a bug or the wiki needs more infomation. |
Re: QtCreator and madde on Windows
That's just a compiler warning, i wouldnt have expected it to cause the process to fail..
Continue with the rest of the wiki and see what happens; you might not even need the debugging helper for the maemo device (I'm not sure if debugging on device works, actually.. I'm debugging the windows version of my apps, and then just using madde to build for the device, not debug) The only thing I note that your setup has difered from mine (and mine was flawless as per the wiki) is that youre installing on D (shouldnt make a difference) I also made sure it used the qtcreator from the wiki (feb 24) rather than any of the later ones that are built for windows, and I had the proper qtcreator official installed first (version 2010.02 or something..) |
Re: QtCreator and madde on Windows
yeh i am installing to drive d as its the only place with space. this shouldnt make a diffrence but i did wonder weather it had. hmm i thought i had tryed that version befor but u say u have the normal desktop version installed as well?? and which libary should i download the windows ones or the maemo 5 src ? any way now i have had a rest im gonna give it a go again.
|
Re: QtCreator and madde on Windows
I downloaded the latest official one from nokia (1.3.1 i think, or 2010.02.1 depending on where you look) here:
http://qt.nokia.com/products/platform/qt-for-windows which eventully links through to this download url: http://get.qt.nokia.com/qtsdk/qt-sdk...-2010.02.1.exe Then I downloaded the 1.3.80 from the ftp link posted in the wiki, but there is a 1.3.81 available now If you don't download the big one from nokia, some tools and Qt libs are missing, i think, for the latest builds.. Agreed D drive shouldnt make a difference; it was just something I noticed that differed.. |
Re: QtCreator and madde on Windows
i will try your links and do it that way. but the state i am in now is that i can not get the red cross green but i didnt bother with it because you said i didnt have to. so i can start a build it fails and lists every include saying its not a file.
any ideas sorry i am a good programmer but most of my development has been in java and javame. as the n900 doesnt support them i thought maybe it was time to brush up on my c++ skills as im a game programmer i wanted to use a gui system similer to java and i found qt. do i need to include the libs somewere in the project? any help would be much appritaited. my app built in scratchbox. does qt creator support subversion as well ? sorry for the non related question. cheers you have been a massiv help. |
Re: QtCreator and madde on Windows
I think i found a bug if you have a project that is hosted in svn. Then you check it out and add it to qt creator using the .pro file. when you try and veiw the source or open any folder with the .svn file in it. it will crash out and ask you to debug qt creator.
would any one like to test this please befor a bugzilla post is made? I fixed the crashing from happending every time by deleting the .svn file in every folder of the project. This is not realy ideal and is more of a work around then a fix. |
Re: QtCreator and madde on Windows
ok i think i have got it all installed properlly now i have a green tick any way and can build for maemo device but it doesnt find any of the includes can any 2 help?
|
Re: QtCreator and madde on Windows
3 days later i can finaly build and run my maemo applications through qtcreator using madde. i can not tell you what i did to turn the red tick green i just kept pressing it and eventualy it worked.
the reson i could not include anything in my current svn project when i could in a new project was that my svn project needed to be moved localy into the qtcreator install directory. this clears up all include probems. cheers for all ur help. |
Re: QtCreator and madde on Windows
Quote:
anyways, I digress.. Quote:
Quote:
For example, I wrote a class that did nothing other than hold 2 QStrings And the QStrings were underlined because they were undefined.. didnt happen in any of my other classes, until I realised I hadnt done: #include <QtCore> in my .h every other class I used in the example app was inheriting an already existing QClass so getting its incs from there.. Quote:
|
Re: QtCreator and madde on Windows
Hi,
I was successfully build an application on my N900 using madde. Its easier to use with ad-hoc network actually as I dont need to worry about those connectivity problems. However, the only feedback is that those QT libs in madde is old versions and I dont know how to upgrade it. ex: libqt4-xml, any help??? |
Re: QtCreator and madde on Windows
|
Re: QtCreator and madde on Windows
Quote:
Isnt this obsolete now ? i feel it's safe to remove it , can you confirm ? http://stackoverflow.com/questions/7...p-in-qtcreator |
| All times are GMT. The time now is 22:19. |
vBulletin® Version 3.8.8