10

I'm following this tutorial on compiling Qt 5 on Windows, using Visual Studio 2008 as the compiler.

When running configure.bat I get a warning - The build will most likely fail.

This is the complete command:

configure -developer-build -opensource -nomake examples -nomake tests

This is an excerpt of configure.bat's output:

Running configuration tests...
WARNING: The DirectX SDK could not be detected:
  There is no Direct X SDK installed or the environment variable "DXSDK_DIR" is
not set.
Disabling the ANGLE backend.

WARNING: Using OpenGL ES 2.0 without ANGLE.
Specify -opengl desktop to use Open GL.
The build will most likely fail.

What should I do to avoid this warning? Should I specify -opengl, or should I install Direct X SDK?

Edit

The build (I ran nmake) did fail complaining that GLES2/gl2.h is missing:

c:\workspace\qt5source\qt5\qtbase\include\qtgui\../../src/gui/opengl/qopengl.h(82) : fatal error C1083: Cannot open include file: 'GLES2/gl2.h': No such file or directory
9
  • Do you want to stay cross-platform, or are you only targeting Windows?
    – cmannett85
    May 20, 2013 at 11:33
  • I'm only targeting Windows.
    – sashoalm
    May 20, 2013 at 12:50
  • Does your target (and build) system support full OpenGL (i.e. not OpenGL ES)?
    – cmannett85
    May 20, 2013 at 12:53
  • I have no idea. All I can say is I'm using the VS2008 toolchain. Not sure if it supports full OpenGL.
    – sashoalm
    May 20, 2013 at 12:55
  • It's a hardware requirement rather than software one, your toolchain will support both. What graphics card have you got? If you don't have one, does your processor have one built into it?
    – cmannett85
    May 20, 2013 at 12:58

1 Answer 1

15

OpenGL ES is a cut down version of the OpenGL specification aimed at smartphones and tablets, ANGLE provides the ability for OpenGL ES API calls to be converted to DirectX equivalents.

Unless you plan on creating apps that target OpenGL ES platforms and Windows, just go with passing -opengl desktop to configure. Otherwise you will need to get hold of the DirectX SDK to enable ANGLE support.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.