Error compiling qt5.01 on windows
I have following configure options:
configure -platform win32-msvc2010 -debug-and-release -opensource -c++11 -shared -make libs -make tools -no-accessibility -plugin-sql-sqlite -qt-zlib -mp -opengl desktop
nmake gives me the error in the middle of the compilation:
qplatformscreenpageflipper.cpp
qplatformsystemtrayicon_qpa.cpp
qplatformopenglcontext.cpp
c:\libraries\qt\qt-5\qtbase\include\qtgui\../../src/gui/opengl/qopengl.h(55) : fatal error C1083: Cannot open include file: 'GLES2/gl2.h': No such file or directory
qopenglcontext.cpp
c:\libraries\qt\qt-5\qtbase\include\qtgui\../../src/gui/opengl/qopengl.h(55) : fatal error C1083: Cannot open include file: 'GLES2/gl2.h': No such file or direc
tory
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 11.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.
Help will be much appreciated, thanksl
Re: Error compiling qt5.01 on windows
I've same problem with opengl desktop then i've installed directX binary and add its path into environment var
Re: Error compiling qt5.01 on windows
I have the same problem but can someone explain what alizadeh91 means please?
Edit1: Never mind. Got it http://qt-project.org/wiki/Building-...6ebb28e0cda430
Just pass -opengl desktop to configure
Edit2: Never mind again. http://qt-project.org/forums/viewthread/23189 Use DirectX SDK
Re: Error compiling qt5.01 on windows
From here :
http://qt-project.org/wiki/Building-Qt-5-from-Git
Windows Graphics Drivers
QML2 requires OpenGL 2.1 or higher or Open GL ES 2.0 to work.
In Windows, two options are available:
Use the ANGLE-library [code.google.com] to translate OpenGL calls into DirectX (default)
Use the native OpenGL driver for your graphics card
A copy of ANGLE is bundled in Qt 5. To use Option 1, you need to install the DirectX SDK [msdn.microsoft.com] (Note: Starting from Windows Kit 8, this is included in the Windows SDK).
To use Option 2, you need to ensure that your graphics card driver supports OpenGL 2.1 or higher (Note: The stock Windows driver only supports OpenGL 1.1, which is insufficient), and pass `-opengl desktop’ to configure.exe.
and here is directX:
http://msdn.microsoft.com/library/wi.../hh452744.aspx
Re: Error compiling qt5.01 on windows
Re: Error compiling qt5.01 on windows