PDA

View Full Version : Libraries in debug mode ?


SteM
3rd August 2007, 14:04
Hi all,
is there a way to have the QT libraries in 'debug version' to allow the developed to trace step-by-step into the QT calls?
Do i need a version with the symbols included?
How can i buils them?

Thanks !!

jpn
6th August 2007, 21:42
In short, see "configure -help". :)

PS. On Windows there is a shortcut for building debug libs in the start menu (provided that Qt was installed from a binary installer).

SteM
8th August 2007, 10:16
Thanks a lot.
What about to compile an application in debug mode, with its symbols?

Can i debug them with the 'standard' gdb or do i need some other tools?

Thansk again ! :p

jpn
8th August 2007, 10:49
Yes, gdb is fine. :) Either invoke:
qmake -config debug
or add
CONFIG += debug
to the .pro file and rebuild the application.

SteM
8th August 2007, 11:09
Thanks again!
In the project i received I read the .pro file and i see the debug option set, but it reports it is generated automatically by qmake.
How can i generate it for debug and release version?

PS: I typed 'qmake -help' and i didn't see -config option :confused:

Thanks again !!

jpn
8th August 2007, 11:28
If you want to build both debug and release: Building in Both Modes (http://doc.trolltech.com/4.3/qmake-common-projects.html#building-in-both-modes). I couldn't spot documentation for "qmake -config" but it's being used for example all over the examples. There are a few undocumented features (http://wiki.qtcentre.org/index.php?title=Undocumented_qmake) in qmake. ;)