[Qt-interest] Static qt build

Malyushytsky, Alex alex at wai.com
Thu Oct 22 23:27:12 CEST 2009


>> This is from a debug build? That I can say that we've never used Qt
compiled static in debug mode.


Qt was built according to support recommendations, both debug and release flag were changed:
- qt\mkspecs\win32-msvc2005 :

QMAKE_CFLAGS_RELEASE    = -O2 -MT
QMAKE_CFLAGS_DEBUG      = -Zi -MTd

Also embed_manifest_exe and embed_manifest_dll were removed from config.


_CrtIsValidHeapPointer only exists in the debug mode, but it indicates the problem, not creating it.
It is removed by preprocessing in release, but there is no evidence that problem is removed.

If the source of the problem is mixing debug and release CRTs (in QT) for debug only configuration,
problem may not appear in release.

I don't have QT static build right now on my computer, so I can't check what happened in release.
( I still have minimal project reproducing the problem, if anybody is interested to test it.
I can send it on request)

But I would not risk to deploy release of application when I can't even run debug.
So we gave up on static build.

Regards,
    Alex

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Robin Helgelin
Sent: Thursday, October 22, 2009 1:46 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Static qt build

On Thu, Oct 22, 2009 at 22:23, Malyushytsky, Alex <alex at wai.com> wrote:
> You can make such changes and rebuild QT,  but at least with  msvc2005 you
> will get problems running some code.
>
> I tried half year ago and could not resolve the issue with QT commercial
> support.

We've used static build of Qt since 2005 and haven't had a single
problem related to static Qt together with static VS runtime. That
goes for both vs2005 and vs2008. However, we've seen a lot of strange
compiler related issues with vs2005 and methods defined inline in
header files.

> It builds successfully and runs in the most cases fine, but at one point QT
> calls with _CrtIsValidHeapPointer which fails with the following message

This is from a debug build? That I can say that we've never used Qt
compiled static in debug mode.

--
        regards,
        Robin

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”




More information about the Qt-interest-old mailing list