virtual-machine - QtQuick 应用程序不会在 VMWare(虚拟机)上运行

标签 virtual-machine qml qtquick2 egl

构建系统:

  • Qt Creator 2.7.2 基于 Qt 5.1.0(32 位)构建于 2013 年 7 月 2 日
  • Qt 5.1.0 MSVC2010 32 位(角度)
  • 适用于 Windows 7 的 Microsoft Windows SDK (7.1.7600.0.30514)

环境:

  • Windows 7(虚拟机)

问题: 我收到一个新的 Qt Quick 2 应用程序(内置元素)项目将无法运行:

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;                      
}

我相信这是因为它在虚拟机上运行。

我已经尝试过 Qt 的 ANGLE 和 OpenGL 版本,但都失败了。我预计 OpenGL 会失败,因为我不相信我们的 VMWare 基础架构具有兼容的视频驱动程序。

有没有其他人遇到过这种情况并设法解决它?

谢谢, 马库斯

最佳答案

我遇到了同样的问题,我通过在 vmplayer conf 中激活“Accelerate 3D graphics”解决了这个问题。 之后,我没有收到错误消息,但应用程序仍然无法运行:显示空白屏幕。

关于virtual-machine - QtQuick 应用程序不会在 VMWare(虚拟机)上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18258386/

相关文章:

linux - 检查BIOS/UEFI中是否启用了VT-D/IOMMU

sqlite - 在QML中设置自定义本地存储路径

qt - 一种避免在 C++ 中定义 QObject 属性的样板代码的方法(可从 QML 访问)?

qt - QML - 跟踪组件的全局位置

virtual-machine - VirtualBox:扩展分区

python - 无法访问Azure计算实例中的Flask应用程序

networking - 如何从主机请求 grunt 服务?

c++ - setContextProperty() 在这种情况下如何失败?

windows - 在 Windows 上的 QQuickView 中使用 MenuBar 组件

qt - 在 QML 中测量耗时