PDA

View Full Version : MSVC 2010 Binary for Qt



pssss
10th March 2011, 01:03
There is a 2008 binary but not for 2010. I can't compile Qt myself because I don't have the 50-60 GB required space. Is there an official announcement as to whether the 2010 binary will be released? And if so when might this be?

Zlatomir
10th March 2011, 02:17
Why 50-60 GB?

The compiled* "stuff" is ~4.5 GB on my machines, and only ~1.5GB remains after clean-up**, i'm pretty sure that it doesn't need that much space.

*build the Qt source code (http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.2.zip) with default configure, then build the framework (nmake sub-src) and then the tools (nmake sub-tools)
**nmake clean after the build is finished.

nish
10th March 2011, 05:17
Qt doesn't support vs2010 coz that compiler has some nasty bugs which fails to compile qt. At least that was the last information i got.

EDIT:-
actually it compiles, but qt crashes at runtime.

Zlatomir
10th March 2011, 08:43
@Nish: i didn't had any crash, well i'm not saying that there are no bugs, there might be some hidden subtle ones, but most of the run-time crashes i saw including on this board where caused by the usage of dll's built with VS2008 (people often think that different versions of VS are binary compatible, there are not)

nish
10th March 2011, 09:11
this is the bug http://bugreports.qt.nokia.com/browse/QTBUG-11445

its closed becoz its an MS bug, not Qt bug.

pssss
10th March 2011, 13:35
Why 50-60 GB?

The compiled* "stuff" is ~4.5 GB on my machines, and only ~1.5GB remains after clean-up**, i'm pretty sure that it doesn't need that much space.

*build the Qt source code (http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.2.zip) with default configure, then build the framework (nmake sub-src) and then the tools (nmake sub-tools)
**nmake clean after the build is finished.

It says here http://stackoverflow.com/questions/4365836/how-to-reduce-the-size-of-qt-build that it takes 50-60 GB and I read in various other places that it takes like 10 hours to compile. I think I stopped compilation after 3 or 4 hours and it was already taking like 6 GB.

Are you sure it only takes 4.5 GB?

squidge
10th March 2011, 14:13
I have several different versions of Qt installed and the directory size is only 10GB, so ~5GB per version sounds about right.

pssss
10th March 2011, 16:44
I have several different versions of Qt installed and the directory size is only 10GB, so ~5GB per version sounds about right.

The final installation might take only 5 GB but how much space does compilation need for temporary files and such?

Zlatomir
10th March 2011, 18:22
I didn't check about temporary file during the installation/compilation, but i had about 15GB free on my laptop C: drive (with sources at C:\qt-src-4.7.2) and it didn't complained about disk space.
Note that i did build only sub-src and sub-tools

@squidge: if you run nmake clean after the build is over it will clean the temporary files and save space, or is this operation not recommended? I have done that and i didn't had any issues.

@Nish: That bug refers to the 64bit Qt build (so if you build 32bit Qt framework and 32 Qt applications that doesn't affect you)
And yes that was a known bug in VS 2010 structures alignment when target x64 applications and use /O2 optimization and have bigger than 64bit structures (if i remember correctly) but it has been fixed (link (http://support.microsoft.com/kb/2280741))

squidge
10th March 2011, 19:48
It's only not recommended if you intend to make changes to the Qt source files. If you reconfigure you want to ensure its clean first, and for normal use, the object code is not much use so it can be cleaned then too.

After cleaning, the directory sizes drop down to 1.1GB each.

pssss
10th March 2011, 19:54
I didn't check about temporary file during the installation/compilation, but i had about 15GB free on my laptop C: drive (with sources at C:\qt-src-4.7.2) and it didn't complained about disk space.
Note that i did build only sub-src and sub-tools

@squidge: if you run nmake clean after the build is over it will clean the temporary files and save space, or is this operation not recommended? I have done that and i didn't had any issues.

@Nish: That bug refers to the 64bit Qt build (so if you build 32bit Qt framework and 32 Qt applications that doesn't affect you)
And yes that was a known bug in VS 2010 structures alignment when target x64 applications and use /O2 optimization and have bigger than 64bit structures (if i remember correctly) but it has been fixed (link (http://support.microsoft.com/kb/2280741))


Ok thanks. From the extras I only need Phonon and XML, could you please tell me what commands I would have to use or the two you listed would work. I also don't need designer for example since I don't use it but I do need the translation tool, can I exclude that? Do you remember how long it took? If I add Phonon and XML do you know if it will take much more than 15 GB?

Zlatomir
10th March 2011, 21:49
Looks like Phonon and XML libraries are build by default.
//i didn't used Phonon, but i have phonon4.dll and phonond4.dll in the qt\bin folder.

It took about 3 hours to build

squidge
11th March 2011, 00:24
Do you remember how long it took? If I add Phonon and XML do you know if it will take much more than 15 GB?The time is based on your system, mostly CPU and RAM performance. It can take anything from 2 - 3 hours to 15+ hours.

All we can really say is try it and see. If it runs out of space its not going to trash anything, just clean, free more space and try again.