Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nicola Peroni
    wrote on last edited by Nicola Peroni
    #1

    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

    jsulmJ 1 Reply Last reply
    0
    • N Nicola Peroni

      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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nicola Peroni
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved