[Qt-interest] Qt 4.5.1 Windows GROWS 4Gb+

Bob Hood bhood2 at comcast.net
Sun May 24 16:49:11 CEST 2009


Miguel Cardenas wrote:
> Hi
>
> Well, finally decided to make a single windows partition with the
> whole disk to compile Qt 4.5.1. I did
>
> configure.exe -release -qt-gif -phonon -phonon-backend
>
> (the same as in Linux) and the result was a 7.5Gb directory tree.
> Backed it up and deleted 'demos', 'examples' and 'doc', but the tree
> is still over 4Gb.
>
> Why 4.5.1 is too large? 4.4.3 is ~1Gb only with the exact same
> configure options, computer and compiler. Will the applications be so
> large too?
>
> I think (just my personal opinion) that future releases should be more
> optimized, my linux installation (without applications) is 2Gb, My
> WinXP is 5Gb with all applications already installed, even Windows
> Vista does not install 7Gb+, it is excessive for just a library.
>
> It provides a very good benefit, but the cost in space is too high in
> the latest version.

I'm not sure what your ultimate goal is with your build, but let me
briefly relate my experiences.

I am currently responsible for building Qt across all my product's
supported platforms (Windows, OS X, Linux) for other developers to use
when they are developing.  I have incorporated the build knowledge for
all these platforms into a single Python script that automates the
entire build/packaging process.

Of course, one of my goals is to produce a distribution of Qt (4.5.1)
that has as small a disc footprint as possible, because some of my
fellow developers have somewhat limited disc space.  So, my Python
script performs a post-build clean-up of the Qt build folder prior to
packaging it (i.e., creating a 7-Zip archive of it).  In order to
accomplish this, it scours the directory structure, removing everything
and anything that is unnecessary to be able to compile against, and
finally run, our product using Qt.

So, under Windows, for example, I have a kill list that looks like this:

    kill_list = ['*.pch', '*.ilk', '*.exp', '*.obj', '*.c', '*.cpp',
'obj', 'uic', 'moc', 'rcc']

Then, after the build is done, the kill list is processed, and any
matching files are deleted from the Qt directory hierarchy:

    os.path.walk(full_path,path_visitor,(kill_list))

I then completely delete selected sub-folders which are of no use to me:

    remove_folder('config.tests')
    remove_folder('demos')
    remove_folder('doc')
    remove_folder('examples')
    remove_folder('tools')

This ultimately gets me a Qt distribution that is anywhere between 700MB
and just over 1GB, depending upon the platform (OS X tends to have the
largest footprint).

Hope that's of some help to you, Miguel.


-- 
Render me gone,                       |||
Bob                                 ^(===)^
---------------------------------oOO--(_)--OOo---------------------------------
      "There are three choices in life:  Be good, get good, or give up."
                                                            - House

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090524/564d30b8/attachment.html 


More information about the Qt-interest-old mailing list