[Qt-interest] [Interest] Debugging on Linux
Andreas Pakulat
apaku at gmx.de
Wed Nov 2 11:44:04 CET 2011
On 02.11.11 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 build Qt in debug-and-release and then you need to disable this in
your application build and specify either debug or release. To switch
you need to do a make clean and then re-run qmake with the other type
enabled and then build again.
Testing this a bit it might also work to use CONFIG=debug_and_release
and then run make -f Makefile.Debug to build the debug version and make
-f Makefile.Release for the release version. Note though that the last
make-call will overwrite the final binaries, but apparently at least the
object files are being separated by qmake. The safe bet though is to use
CONFIG-=debug_and_release CONFIG+=debug or CONFIG-=debug_and_release
CONFIG+=release respectively and do a make clean when switching.
Andreas
More information about the Qt-interest-old
mailing list