title: Statically linked app with Qt gives error: Failed to load platform plugin "windows"
body: <p>I have built Qt 5.0.1 statically in VS 2010 under Windows 7 x64. The configuration parameters were</p>
  
  <pre><code>configure -debug-and-release -opensource -confirm-license -platform win32-msvc2010 -nomake examples -nomake tests -no-webkit -static
  </code></pre>
  
  <p>and I performed the build with jom with following parameters:</p>
  
  <pre><code>jom -j 4
  </code></pre>
  
  <p>The build process was successful and I can find all the libs and link my app with Qt statically. Now the problem is that when I try to run the application, it gives me an error </p>
  
  <pre><code>Module: 5.0.1
  File: kernel\qguiapplication.cpp
  Line: 781
  "Failed to load platform plugin "windows". Available platforms are:"
  </code></pre>
  
  <p>But below this error, it does not show up any platforms. I encountered the same error while linking with Qt dynamically. I got rid of that by placing dependency DLLs (qt5core.dll, qt5gui.dll etc) in the same directory of my exe. But I can't figure out a way this time.</p>
  
  <p>After static build of Qt, the DLLs in the plugins/platforms/ folder are gone and they are replaced by libs. I have also tried to statically link with qwindows.lib but to no avail.</p>
  
  <p>Any idea?
  Regards.</p>