Qt 5 is now officially released, but binaries are
not available for Visual Studio 2008. Therefore, you must build it from source.
There are several "gotchas" to beware of:
1 - If you download the source rather than clone the git repository, you
must download the ZIP file version, not the tar.gz version. The ZIP version contains a file that is
required for bootstrapping the configuration, and this file is missing from the tarball. If you don't have this file, the config fails. So,
download the ZIP distribution.
2 - You
must have both
perl and
python installed. The configure script depends on them. Be sure both are installed and in your $path. See the README file in the toplevel directory of the distribution for version details.
3 - If you are building libraries for desktop use, the configure command given in the README file will not work, because it defaults to OpenGL/ES, which is not installed on Windows desktops by default. So use this configure command instead (from a Visual Studio 2008 command window - in VS, find it on the Tools menu):
configure -prefix %CD%\qtbase -opensource -opengl desktop -nomake tests
configure -prefix %CD%\qtbase -opensource -opengl desktop -nomake tests
To copy to clipboard, switch view to plain text mode
4 - Once the configuration script is done, build the sources:
nmake
nmake
To copy to clipboard, switch view to plain text mode
Then go and have lunch, and maybe it will be done by the time you get back.
I wasted half a day before finally figuring all this out.
Bookmarks