[Qt-interest] [Interest] Debugging on Linux
Nikos Chantziaras
realnc at arcor.de
Wed Nov 2 18:10:38 CET 2011
On 11/02/2011 12:55 PM, 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?
>
> You probably want -release for Qt, unless you plan on debugging inside Qt
> itself.
IMO, it's better to have a -debug build of Qt for development. In some
cases, a debug Qt gave me runtime warnings about wrong code in my apps
(it would tell me for example that I was using QPainter in a wrong way.)
The -release version didn't do that.
The way I've set this up, is to simply build and install Qt twice with
different target directories. Then I use the appropriate qmake binary.
For developing, I use the qmake from the debug build. For building a
release binary, I use qmake from the release build from Qt.
More information about the Qt-interest-old
mailing list