title: Building Qt 5.2.1 from sources on Windows - OpenGL/angle error
body: <p>I am trying to build QT now for 2 days but it just doesn't work. This is what I did so far:</p>
  
  <ul>
  <li>getting source (qt-everywhere-opensource-src-5.2.1)</li>
  <li>installing perl, python, directx 9 sdk</li>
  <li>adding perl, python to path variable</li>
  <li>open cmd:</li>
  </ul>
  
  <pre>
      CALL "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64
  
      set PATH=C:\Qt\Qt5.2.1source\qtbase\bin;C:\Qt\Qt5.2.1source\qtrepotools\bin;C:\Qt\Qt5.2.1source\gnuwin32\bin;%PATH%
  
      set QMAKESPEC=win32-msvc2010 
  
      cd C:\Qt\Qt5.2.1source\
  
      configure -debug -nomake examples -nomake tests -opensource -platform win32-msvc2010 -confirm-license (also tried with -opengl desktop)
  
      nmake
  </pre>
  
  <p>And then I get this error message:</p>
  
  <pre><code>qplatformopenglcontext.cpp
  c:\qtdev\qtbase-build\include\qtgui\../../../qtbase/src/gui/opengl/qopengl.h(55)
   : fatal error C1083: Cannot open include file: 'GLES2/gl2.h': No such file or d
  irectory
  qopenglcontext.cpp
  c:\qtdev\qtbase-build\include\qtgui\../../../qtbase/src/gui/opengl/qopengl.h(55)
   : fatal error C1083: Cannot open include file: 'GLES2/gl2.h': No such file or d
  irectory
  Generating Code...
  NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
  \VC\BIN\cl.EXE"' : return code '0x2'
  Stop.
  NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
  \VC\BIN\nmake.EXE"' : return code '0x2'
  Stop.
  NMAKE : fatal error U1077: 'cd' : return code '0x2'
  Stop.
  NMAKE : fatal error U1077: 'cd' : return code '0x2'
  Stop.
  </code></pre>
  
  <p>the same like here: <a href="https://bugreports.qt-project.org/browse/QTBUG-28315" rel="nofollow">QT_BUG</a> but this should be fixed in 5.1.0 so I guess I do something wrong but I don´t know what :( It´s driving me crazy! I tried several different confiure settings but always the same error.</p>
  
  <p>Btw: I had the same error before I installed DirectX SDK, the only thing changed after installing was the warning after performing configure doesn't show anymore.</p>
  
  <p>Do you have any clue how I can get this working?</p>