Has anyone succeeded in running QML applications embedded in Qt 5.5 (static) and msvc2015

I have a Qt 5.5 x64 static library against msvc2015 with the following settings:

configure -static -release -nomake examples -nomake tests -platform win32-msvc2015

      

plus replace all occurrences /MD

with /MT

those found inqtbase\mkspecs\common\msvc-desktop.conf

After getting my QML application built with pre-compiled Qt Creator 3.4.2, it keeps aborting during startup with message box (in VirtualBox Win7 guestbook):

Failed to create OpenGL context for QSurfaceFormat (version 2.0, parameters QFlags (), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1 0).
This is most likely caused by a lack of required graphics drivers.
Install a driver that provides OpenGL 2.0 or higher, or if this is not possible, make sure the ANGLE Open GL ES 2.0 emulation libraries (libEGL.dll, libGLESv2.dll, and d3dcompiler _ *. Dll) are available in the application executable directory or in the location specified in PATH.

I tried to disable the VitualBox's 3D acceleration, but it doesn't make any difference. Then I created one Qt Widget app and another Qt Quick app with the same Qt library. The Qt widget starts up. Qt Quick shows the same behavior as my QML application.

Also I noticed that Qt Creator itself does not show its welcome page (QML?) If 3D acceleration is enabled. Run Qt Creator in VirtualBox mode without 3D acceleration on virtual machine crashes.

Does Qt 5.5 come with dynamic OpenGL by default? I suspect QML Qt 5.5 does not start with static or x64 build on Windows. Has anyone testified otherwise?

(crossroads placed in the Qt Quick forum )

+3


source to share


1 answer


You looked here:

Building Qt from Source on Windows - Requirements



Try passing "-opengl dynamic" to the config just before creation.

I will also try running GPUCaps or something similar to make sure the VM environment is exposed to the appropriate drivers / features. The default GL for Windows is 1.1 and anything above is provided by the GPU manufacturers.

0


source







All Articles