Is this normal? I recompiled downloaded opensource 4.5 with ms2008 for Win32. After that QT folder has 10 GB of stuff.
Is that normal?
Is it possible to reduce the size/# of files of compiled QT tree?
Is this normal? I recompiled downloaded opensource 4.5 with ms2008 for Win32. After that QT folder has 10 GB of stuff.
Is that normal?
Is it possible to reduce the size/# of files of compiled QT tree?
did you build Qt with flags debug and static. building Qt in such way takes a lot of disk size. so, usually for debug version Qt better build as shared lib, and if you need static Qt version then build it in release mode.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Did you call make clean after the building process have finished? It would remove all the intermediate files generated during compilation.
JohannesMunk (20th September 2010)
Spirit:
I compiled it with "debug and release" flag. I fugured out that if I will compile it with "-debug" flag only then I can't turn release mode on and off. (Am I correct, by the way?)
Wysota:
No, I did not, I was not aware that it even exists. I did not find "make.exe" in opensource distribution. M-soft "nmake", used in Windows install of QT, does not have that option. Can you advise me on the details of how to clean up temp files after installation?
As to the original question: it has become normal for the newer versions of Qt to take up that much space directly after compilation. You should be able to save a lot of space by excluding phonon and the demos and examples from the build.
Wysota you should see on my Gentoo box QtWebKit is 350MB since I have strip disabled. If I enable strip it goes all the way down to 30MB
Well they can use the -prefix <dir> to install to a specific folder after copying the mkspecs to that folder. do nmake install and that would reduce alot of space and it only installs the stuff Qt requires and they can delete the original qt folder that they were building from. Also disable stuff they do not need too.
The problem is the switch doesn't exist on Windows anymore. You can only have an in-place install there. And besides, this doesn't really reduce the space requirement for building Qt, it only moves it elsewhere. "(n)make clean" will remove all intermediate files, so that is enough, one doesn't have to do any other tricks. But QtWebKit still requires a few gigabytes to build, especially if you build in both debug and release modes at once.
Strange the -prefix worked for me the other day :S
Not sure if its there in 4.5.1, but it was available till 4.5.0 . Refer this thread in which I had discussed the same with youPeople reported it's not there anymore (on Windows, of course). I haven't checked it myself, I just follow what they said.
Then it's probably still available. I just assumed the person stating it's not there knew what (s)he was saying...
Bookmarks