Should I build with OpenGL (desktop/dynamic) or not?
-
I built from source using
-opengl desktop
. However, I got someQ_UNREACHABLE
error. This code was working on 5.10.1 x86. However, current version that I compiled v5.11.2 cannot open it.My main target is WebEngine. I needed WebEngine x86 binaries for VC2017.
If I set;
QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
then it just works. However, I do not needed this code in earlier versions. So my question is, what option should I use while building QT myself?
- -opengl desktop (current)
- -opengl dynamic
- -no-opengl
What is the Qt's default choice?
Error:
-
I found that:
OpenGL Options for Windows
On Windows, Qt can be configured with the system OpenGL or with ANGLE. By default, Qt is configured to use dynamic OpenGL. This means that it tries to use system OpenGL and falls back to ANGLE, which is bundled with Qt and depends on the DirectX SDK, if native OpenGL does not work. ANGLE enables running Qt applications that depend on OpenGL, without installing the latest OpenGL drivers. If ANGLE also fails, Qt will fall back to software rendering, which is the slowest but most safe of the rendering methods.I will try with dynamic.
-
I found that:
OpenGL Options for Windows
On Windows, Qt can be configured with the system OpenGL or with ANGLE. By default, Qt is configured to use dynamic OpenGL. This means that it tries to use system OpenGL and falls back to ANGLE, which is bundled with Qt and depends on the DirectX SDK, if native OpenGL does not work. ANGLE enables running Qt applications that depend on OpenGL, without installing the latest OpenGL drivers. If ANGLE also fails, Qt will fall back to software rendering, which is the slowest but most safe of the rendering methods.I will try with dynamic.