title: Qt5 -static x64 and linking nightmares
body: <p>I'm trying to compile Qt5 64 bit under Windows 7 64 bit with the -static option.</p>
  
  <p>Here's what I did:</p>
  
  <p>1) Downloaded the Qt sources and extracted them into a C:\Qt5\5.0src directory
  2) Followed all the steps here <a href="http://www.geometrian.com/programming/tutorials/setup_Qt.txt" rel="nofollow">http://www.geometrian.com/programming/tutorials/setup_Qt.txt</a> to set up the environment variables and .conf files to build statically
  3) Launched configure with </p>
  
  <pre><code>configure -debug-and-release -opensource -confirm-license -platform win32-msvc2010 -nomake tests -nomake examples -opengl desktop
  </code></pre>
  
  <p>The opengl desktop parameter was needed because there's a bug with -no-opengl and I can't compile angle.</p>
  
  <p>Finally launched jom.exe -j5 /p</p>
  
  <p>and I got this error which I don't know how to solve</p>
  
  <pre><code>moc_qwindowsinputcontext.cpp
          lib /NOLOGO  /OUT:..\..\..\..\plugins\platforms\qwindows.lib @C:\Users\Mark\AppData\Local\Temp\qwindows.lib.3796.29562.jom
          cd qtsvg\ &amp;&amp; ( if not exist Makefile C:\Qt\5.0src\qtbase\bin\qmake C:\Qt\5.0src\qtsvg\qtsvg.pro -o Makefile ) &amp;&amp; C:\Qt\5.0src\j
  om.exe -f Makefile
          cd src\ &amp;&amp; ( if not exist Makefile C:\Qt\5.0src\qtbase\bin\qmake C:\Qt\5.0src\qtsvg\src\src.pro -o Makefile ) &amp;&amp; C:\Qt\5.0src\j
  om.exe -f Makefile
          cd svg\ &amp;&amp; ( if not exist Makefile C:\Qt\5.0src\qtbase\bin\qmake C:\Qt\5.0src\qtsvg\src\svg\svg.pro -o Makefile ) &amp;&amp; C:\Qt\5.0s
  rc\jom.exe -f Makefile
          C:\Qt\5.0src\jom.exe -f Makefile.Debug all
  Error: dependent 'C:\Qt\5.0src\qtbase\lib\Qt5Widgetsd.lib' does not exist.
  jom: C:\Qt\5.0src\qtsvg\src\svg\Makefile [debug-all] Error 2
  jom: C:\Qt\5.0src\qtsvg\src\Makefile [sub-svg-make_first-ordered] Error 2
  jom: C:\Qt\5.0src\qtsvg\Makefile [sub-src-make_first] Error 2
  jom: C:\Qt\5.0src\Makefile [module-qtsvg-make_first] Error 2
  </code></pre>
  
  <p>It seems that "Qt5Widgetsd.lib" doesn't exist... why is that? Why hasn't it been built?</p>
  
  <p>Help would be greatly appreciated</p>