[Qt-interest] Building release Qt with PDBs in Windows

Jason Wood jwood275 at googlemail.com
Wed Apr 21 11:28:31 CEST 2010


I thought about adding that actually but MS documentation says that /Zi
implies /debug so I didn't think it would be necessary.

http://msdn.microsoft.com/en-us/library/958x11bc%28VS.80%29.aspx


On Wed, Apr 21, 2010 at 10:24 AM, Cyril C <cyril.mailing.list at gmail.com>wrote:

>  Hi
>
> What about
> QMAKE_LFLAGS_RELEASE += /DEBUG
>
> hth
>
> Le 21/04/2010 11:22, Jason Wood a écrit :
>
> Hi,
>
>  I'm trying to build Qt from source in Windows and also build the PDBs for
> the release version to enable me to work with crash dumps more efficiently
> but I just can't seem to get them to build. Here's what I've done so far:
>
>  Duplicated msvc-2005 folder in mkspecs
> Edited qmake.conf in the new folder
> Set QMAKE_CFLAGS_RELEASE to '-O2 -Zi -MD'
> Set QMAKE_LFLAGS_LTCG to blank
> Run 'nmake clean'
> Run 'nmake cleanconf'
> Run configure including '-platform <duplicated platform name>'
> Run nmake
>
>  This builds the PDBs for the debug build as usual but not the release
> build. I removed the /LTCG to prevent whole program optimization as I
> believe that prevents PDBs being built and I added -Zi to the CFLAGS as I
> believe that tells the compiler to also build the PDBs but I think I must be
> missing something else in the config.
>
>  Does anyone know what else I need to change?
>
>  Thanks,
> Jason
>
>
> _______________________________________________
> Qt-interest mailing listQt-interest at trolltech.comhttp://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100421/b3f42ca8/attachment.html 


More information about the Qt-interest-old mailing list