Compiling Qt as static libraries

George H. Locktish ghlocktish at praxiseng.com
Wed Nov 7 17:17:52 CET 2007


I am attempting to run my application using the Qt static libraries and
I am getting an assert statement each time I run.

 

The assert statement is:

ASSERT failure in rebuild !created no left menubar: "cannot create
menubar from resource", file
..\..\..\4.3.2-tp1\src\gui\widgets\qmenu_wce.cpp, line 494

 

 

I have been able to reproduce this with the stylesheet example.  Both
applications are QMainWindows with menu bars.

 

Any ideas on what I could do to avoid the assert?

 

Thank you,

George

 

________________________________

From: Maurice Kalinowski [mailto:mkalinow at trolltech.com] 
Sent: Wednesday, November 07, 2007 5:53 AM
To: qtce-preview-feedback at trolltech.com
Subject: Re: Compiling Qt as static libraries

 

Hi,

 

It is true, that the resulting static libraries get increased by an
nearly unbelievable size. But in my opinion this is not the value you
should compare. At linking stage most of the symbols get stripped out
(which is one of the advantages using this method), so my suggestion is,
that you compare the sizes of your finished application to get more
reasonable and comparable results.

 

Unfortunately QConfig is the only way to reduce the compilation/feature
amount for building the Qt/WinCE libraries. We are always open for
additional suggestions, feel free to contact us.

 

 

Best Regards,

 

Maurice Kalinowski

 

 

----- Original Message ----- 

	From: George H. Locktish <mailto:ghlocktish at praxiseng.com>  

	To: qtce-preview-feedback at trolltech.com 

	Sent: Tuesday, November 06, 2007 10:31 PM

	Subject: Compiling Qt as static libraries

	 

	I have been experimenting with building Qt as a set of static
libraries.  The resulting QtGuid4.lib file is roughly 56700 KB and I was
wondering where I should begin to try to reduce the size of the lib?

	 

	I have been able to use QConfig to create a shadow build that
gets the QtGuid4 static library down to about 43400 KB, but I was
wondering if there were other techniques in addition to using QConfig to
further reduce the size.

	 

	The configure command I am running is:

	C:\Qt\4.3.2-tp1\configure.exe -platform win32-msvc2005
-xplatform wincewm50pocket-msvc2005 -static

	 

	Thank you,

	George

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.trolltech.com/pipermail/qtce-preview-feedback/attachments/20071107/c0a64f3f/attachment.html 


More information about the Qtce-preview-feedback mailing list