编译Qt 5,收到警告"构建很可能会失败."

sas*_*alm 9 windows qt build visual-studio-2008 qt5

我正在学习使用Visual Studio 2008作为编译器在Windows上编译Qt 5的本教程.

跑步时configure.bat我收到警告 -The build will most likely fail.

这是完整的命令:

configure -developer-build -opensource -nomake examples -nomake tests
Run Code Online (Sandbox Code Playgroud)

这是configure.bat输出的摘录:

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.
Run Code Online (Sandbox Code Playgroud)

我该怎么做才能避免这种警告?我应该指定-opengl,还是应该安装Direct X SDK?

编辑

构建(我跑nmake)确实失败抱怨GLES2/gl2.h缺少:

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
Run Code Online (Sandbox Code Playgroud)

cma*_*t85 13

OpenGL ES是针对智能手机和平板电脑的OpenGL规范的缩减版本,ANGLE提供了将OpenGL ES API调用转换为DirectX等效的能力.

除非您计划创建面向OpenGL ES平台 Windows的应用程序,否则请转到.否则,您需要获取DirectX SDK才能启用ANGLE支持.-opengl desktopconfigure