[Qt-interest] [Interest] Debugging on Linux

Thiago Macieira thiago at kde.org
Wed Nov 2 11:55:02 CET 2011


On Wednesday, 2 de November de 2011 10:27:02 Graham Labdon wrote:
> Ok I'm a little confused now
> I want to be able to build and debug a Qt application and the build a
> release version.
> 
> How should I build Qt - -debug, -release, or -debug-and-release
> If I build Qt with debug how can I link to the release versions of the Qt
> libraries?

You probably want -release for Qt, unless you plan on debugging inside Qt 
itself.

When building your application for debugging, you do what Andreas suggested. 
Note that Qt Creator automatically sets those options when you select a debug 
build.

When you're ready for release, re-run qmake with no arguments and build again. 
Or let Creator do it.

> I am unsure of the steps that I should be taking and would appreciate a
> guiding hand

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111102/2fb602a6/attachment.bin 


More information about the Qt-interest-old mailing list