Qt 5.13.0 Basic shapes C++ example fails



  • I installed Qt 5.13.0 on Windows 7 with qt-opensource-windows-x86-5.13.0.exe, and I've been building the Qt3d example basicshapes-cpp. I have tried the three MSVC compiler options available:
    MSVC2015 64bit
    MSVC2017 32bit
    MSVC2017 64bit

    The build is successful in each case, but executing the program produces a great number of errors:

    egl::Display::initialize(482): ANGLE Display::initialize error 12289: No available renderers.
    egl::Display::initialize(482): ANGLE Display::initialize error 12289: No available renderers.
    egl::Display::initialize(482): ANGLE Display::initialize error 12289: No available renderers.
    QWindowsEGLStaticContext::create: Could not initialize EGL display: error 0x3001
    QWindowsEGLStaticContext::create: When using ANGLE, check if d3dcompiler_4x.dll is available
    Attempted to use GDI functions with a non-opengl32.dll library
    QWindowsGLContext::QWindowsGLContext: Unable find a suitable pixel format.
    Qt3D.Renderer.Backend: void __cdecl Qt3DRender::Render::Renderer::initialize(void) OpenGL context creation failed
    Attempted to use GDI functions with a non-opengl32.dll library
    QWindowsGLContext::QWindowsGLContext: Unable find a suitable pixel format.
    Attempted to use GDI functions with a non-opengl32.dll library
    QWindowsGLContext::QWindowsGLContext: Unable find a suitable pixel format.
    CommandThread: Failed to create local context
    Qt3D.Renderer.Backend: bool __cdecl Qt3DRender::Render::GraphicsContext::makeCurrent(class QSurface *) makeCurrent failed
    Qt3D.Renderer.Backend: bool __cdecl Qt3DRender::Render::GraphicsContext::makeCurrent(class QSurface *) makeCurrent failed
    Qt3D.Renderer.Backend: bool __cdecl Qt3DRender::Render::GraphicsContext::makeCurrent(class QSurface *) makeCurrent failed
    ...

    I'm guessing that this is related to a popup when Qt Creator starts up, with the title "Plugin Loader Messages".
    "The following plugins have errors and cannot be loaded:
    QmlDesigner
    QmlProfiler

    Details:
    Plugin initialization failed: Cannot create OpenGL context."



  • Fixed by reinstalling the display adapter driver.


  • Qt Champions 2018

    @gibbogle Then please mark this thread as solved, thx.



  • Sorry, Christian, I don't know how to do that.


  • Qt Champions 2018

    @gibbogle Click on "Topic Tools" at the bottom and then "Mark as solved".


 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.