title: Build Qt for Visual Studio
body: <p>I searched the Web for few days now, for how to build <code>Qt 4.8.6</code> for <code>Visual Studio 2012</code>. I am using Windows 10 x64.</p>
  
  <p>I tried following:</p>
  
  <p>Enviroment Variables:</p>
  
  <pre><code>QTDIR=c:\Qt\4.8.6
  Path=%QTDIR%\bin
  QMAKESPEC=%QTDIR%\mkspecs\win32-msvc2012
  </code></pre>
  
  <p>Visual Studio Native Tools Command Prompt:</p>
  
  <pre><code>cd c:\Qt\4.8.6
  nmake confclean
  configure -no-webkit -debug-and-release -opensource -platform win32-msvc2012
  jom -j 8
  </code></pre>
  
  <p>But I always get Error-Codes: (last few lines)</p>
  
  <pre><code>cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DNDEBUG -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\release_shared" -I"..\..\..\mkspecs\win32-msvc2012" -Fotmp\obj\release_shared\ @C:\Users\HONIAH~1\AppData\Local\Temp\moc_mainwindow.obj.146576.5359.jom
  moc_mainwindow.cpp
  link /LIBPATH:"c:\Qt\4.8.6\lib" /LIBPATH:"c:\Qt\4.8.6\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:release\undoframework.exe @C:\Users\HONIAH~1\AppData\Local\Temp\undoframework.exe.146576.7484.jom
  jom: C:\Qt\4.8.6\Makefile [sub-examples-make_default-ordered] Error 2
  </code></pre>