I had the same problem and I resolved it by activating "Accelerate 3D graphics" in vmplayer conf. After that, I don't have the error message, but the apps still doesn't work: it display a blank screen.
QtQuick Application wont run on VMWare (Virtual Machine)
-
24-06-2022 - |
문제
Build System:
- Qt Creator 2.7.2 Based on Qt 5.1.0 (32 bit) Built on Jul 2 2013
- Qt 5.1.0 MSVC2010 32bit (ANGLE)
- Microsoft Windows SDK for Windows 7 (7.1.7600.0.30514)
Environment:
- Windows 7 (VMWare)
Problem: A new Qt Quick 2 Application (Built-in Elements) project will not run as I receive:
class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(void): Could not initialize egl display: error 12289
QOpenGLFunctions created with non-current context
List of attribute names is either too long or not null-terminated.
Maximum number of attributes on this hardware is 0.
Vertex shader:
attribute highp vec4 vertexCoord;
attribute highp vec4 vertexColor;
uniform highp mat4 matrix;
uniform highp float opacity;
varying lowp vec4 color;
void main() {
gl_Position = matrix * vertexCoord;
color = vertexColor * opacity;
}
Fragment shader:
varying lowp vec4 color;
void main() {
gl_FragColor = color;
}
I believe this is due to it running on a virtual machine.
I have tried both ANGLE and OpenGL versions of Qt but both fail. The OpenGL I expected to fail as I don't believe our VMWare infrastructure has a compatible video driver.
Has anyone else experienced this and managed to work around it?
Thanks, Marcus
해결책
다른 팁
This issue is due to the missing of d3dcompiler, provided by DirectX End-User Runtime, as remarked by Friedemann Kleint's comment on QTBUG-31611. I had the same problem (a blank window) and installing DirectX and reboot the system, has been the resolution.
Installation of a NVIDIA graphic acceleration + the related NVIDIA Software driver of the graphic card will fix the problem after a restart of the PC