Scorpion
Scorpion

Reputation: 59

Building Qt 5.2.1 from sources on Windows - OpenGL/angle error

I am trying to build QT now for 2 days but it just doesn't work. This is what I did so far:

    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

And then I get this error message:

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.

the same like here: QT_BUG 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.

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.

Do you have any clue how I can get this working?

Upvotes: 0

Views: 1500

Answers (1)

IGHOR
IGHOR

Reputation: 710

Try to install DirectX SDK. Read more: https://qt-project.org/forums/viewthread/36324

Upvotes: 0

Related Questions