Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled



  • When I try to run my QML application on a ARM iMx6 target machine using the x11 backend, I notice that objects featuring OpenGL (e.g. DropShadow effect) are not shown.
    The following output is printend:

    QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
    QXcbIntegration: Cannot create platform offscreen surface, neither GLX nor EGL are enabled
    

    but my configure output (generated when cross-compile Qt for my target) says something different:

    QPA backends:
      DirectFB ............................... no
      EGLFS .................................. yes
      EGLFS details:
        EGLFS OpenWFD ........................ no
        EGLFS i.Mx6 .......................... no
        EGLFS i.Mx6 Wayland .................. no
        EGLFS RCAR ........................... no
        EGLFS EGLDevice ...................... no
        EGLFS GBM ............................ yes
        EGLFS Mali ........................... no
        EGLFS Raspberry Pi ................... no
        EGL on X11 ........................... no
      LinuxFB ................................ no
      VNC .................................... no
      Mir client ............................. no
      X11:
        Using system-provided XCB libraries .. no
        EGL on X11 ........................... no
        Xinput2 .............................. yes
        XCB XKB .............................. yes
        XLib ................................. yes
        XCB render ........................... yes
        XCB GLX .............................. yes
        XCB Xlib ............................. yes
        Using system-provided xkbcommon ...... yes
        Native painting (experimental) ....... yes
    

    So "EGL on X11" is no (I don't really understand why) but "XCB GLX" is yes. So the error message "neither GLX nor EGL are enabled" seems to be wrong.

    I'm using Qt 5.10.1.
    Can anyone help me?
    Thanks in advance


  • Qt Champions 2019

    @Nicola-Peroni said in QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled:

    So "EGL on X11" is no (I don't really understand why)

    You can add -v parameter when you call configure and check the output to see why something is not activated (usually something is missing).



  • Thanks for the reply, I will check.
    Anyway XCB GLX on should be enougth for use OpenGL acceleration, basing on the output log.


Log in to reply