作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在关注 this tutorial关于在 Windows 上编译 Qt 5,使用 Visual Studio 2008 作为编译器。
运行 configure.bat
时,我收到一条警告 - 构建很可能会失败。
这是完整的命令:
configure -developer-build -opensource -nomake examples -nomake tests
这是 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.
我应该怎么做才能避免这个警告?我应该指定 -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
最佳答案
OpenGL ES 是针对智能手机和平板电脑的 OpenGL 规范的简化版本,ANGLE提供将 OpenGL ES API 调用转换为 DirectX 等效项的能力。
除非您计划创建针对 OpenGL ES 平台和 Windows 的应用程序,否则只需将-opengl desktop
传递给configure
。否则,您将需要获取 DirectX SDK 以启用角度支持。
关于windows - 编译 Qt 5,收到警告 "The build will most likely fail.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16646521/
我是一名优秀的程序员,十分优秀!