Building Qt-4.8.7 and qtwebkit-2.3.4 separately with VS2012 on Windows

Building Qt on Windows is quite a difficult work, while the work on OS X and Ubuntu is really simple. The main problem is QtWebKit. Official release provides precompiled Qt4 SDKs for VS2010 but not VS2012; project qt64ng on http://sourceforge.net/projects/qt64ng/ also provides Qt4 SDKs for VS2012 and VS2013, but not detail building steps.

Tutorials on internet provide some instructions on building Qt-4.8 with VS2012, but the generated QtWebKit4.dll doesn't work, encountering error StackHash_0a9e (tested on Win7 and Win10). This tutorial focus on details of building Qt-4.8.7, qtwebkit-2.3.4 and qtcreator-2.8.1.

The reason is that some headers haven't been installed, you should copy headers in directory
C:\Users\username\Downloads\qt-everywhere-opensource-src-4.8.7\src\corelib\kernel
to
C:\Qt\4.8.7\include\QtCore\private