gpt4 book ai didi

windows - 编译 Qt 5,收到警告 "The build will most likely fail."

转载 作者:可可西里 更新时间:2023-11-01 12:43:01 25 4
gpt4 key购买 nike

我正在关注 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com