Compiling Qt as static libraries

Maurice Kalinowski mkalinow at trolltech.com
Wed Nov 7 11:53:15 CET 2007


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 
  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/b7a19523/attachment.html 


More information about the Qtce-preview-feedback mailing list