[Qt-interest] Building release Qt with PDBs in Windows
Cyril C
cyril.mailing.list at gmail.com
Wed Apr 21 11:34:49 CEST 2010
I really just added that flag so my QMAKE_LFLAGS_RELEASE =
/INCREMENTAL:NO /DEBUG
Le 21/04/2010 11:31, Jason Wood a écrit :
> Thanks, I'll give it a go, is that the only flag you set or did you
> include the -Zi and remove /LTCG as well?
>
>
>
> On Wed, Apr 21, 2010 at 10:29 AM, Cyril C
> <cyril.mailing.list at gmail.com <mailto:cyril.mailing.list at gmail.com>>
> wrote:
>
> This flag works for me with msvc-2008. However I did not duplicate
> the mkspec but directly hacked into it.
>
> Le 21/04/2010 11:27, Jason Wood a écrit :
>> 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
>> <mailto: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 list
>>> Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com <mailto: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/f2150e5a/attachment.html
More information about the Qt-interest-old
mailing list