After spending literally weeks trying to build Qt 5 (5.0, 5.1, it doesn't matter) on Windows using MSVC2012, I finally gave up and just installed the pre-built binaries even though they aren't the configuration I want. (I want OpenGL desktop, the pre-builts use Angle).
nmake will eventually build everything, but then there is no way to create an installation that matches what you get in the pre-built. If you specified a directory in the configure step using the "-prefix" option, then "nmake install" will make an installation folder four or five levels deep under your build directory and try to copy everything there. You can't move this somewhere else afterwards, because configure hard codes this directory name into qmake and qmake will not work if moved.
I have never been able to get "nmake docs" to work past step one. It's easier just to download a pre-built version and use the docs from that.
It is pretty obvious that the Qt folks don't care a whole lot about people who want to build from source on Windows using MSVC, because there isn't documentation anywhere that I can find on what configure options are used for the pre-built Windows distributions, and the Makefiles that configure generates for MSVC are very buggy.
I don't think jom is any better than nmake in this case, because like tuli, I wasn't able to build a working distribution this way either. For what it's worth, this is the configure command I used that managed to build all the libraries, but I still couldn't get a working installation from the result:
configure -platform win32-msvc2012 -debug-and-release -developer-build -opensource -opengl desktop -mp -skip webkit -no-dbus -no-strip -qt-zlib -I .\qtbase\include\QtZlib
configure -platform win32-msvc2012 -debug-and-release -developer-build -opensource -opengl desktop -mp -skip webkit -no-dbus -no-strip -qt-zlib -I .\qtbase\include\QtZlib
To copy to clipboard, switch view to plain text mode
Bookmarks