[Qt-interest] [Interest] Debugging on Linux

Joseph Crowell joseph.w.crowell at gmail.com
Wed Nov 2 17:30:30 CET 2011


On 11/2/2011 5:55 AM, Thiago Macieira wrote:
> 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?

I would suggest in your .pro file:
#Append_debugtoexecutablenamewhencompilingusingdebugconfig

CONFIG(debug,  debug|release):TARGET  =  $$join(TARGET,,,_debug)


> 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
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111102/3fc10ce0/attachment.html 


More information about the Qt-interest-old mailing list