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. OpenGL/GLX - Cannot create platform OpenGL context](neither GLX nor EGL are enabled)
Forum Updated to NodeBB v4.3 + New Features

OpenGL/GLX - Cannot create platform OpenGL context](neither GLX nor EGL are enabled)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 703 Views 1 Watching
  • 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.
  • Q Offline
    Q Offline
    qa_test
    wrote on 9 Oct 2024, 01:19 last edited by
    #1

    I'm encountering the same error message as indicated in the link for the posting below, after building and linking against the 5.15.3 source (but not when building and linking against the 5.12.11 source)

    Re: [[Solved] XCB error - QXcbIntegration: Cannot create platform OpenGL context](neither GLX nor EGL are enabled)

    ... in comparison to the above post, we set OpenGL, XCB, but don't need EGL. From reading that and other various posts, I see not having certain xcb, etc. packages installed on the machine building QT from source can cause pkg-config to fail during the configure process. But I believe I have installed all the necessary system packages in the build container.

    I had previously built Qt 5.12.11 from the git source tree in the same linux build container. I subsequently used that build to compile the QT application against, and then installed the Qt application along with the linked in Qt 5.12.11 shared libs on the test VM. The Qt application was able to bring up a window, and display images successfully. The configure options for 5.12.11 were,

    -opensource -confirm-license -verbose --prefix=/$HOME/5.12.11_install -release -nomake tests -nomake examples -no-libudev -no-use-gold-linker -force-debug-info -separate-debug-info -no-sql-mysql -plugin-sql-sqlite -qt-libjpeg -qt-libpng -sysconfdir /etc/xdg -qt-pcre -qt-harfbuzz -xcb-xlib -skip qtwebengine -skip qtwebchannel -skip qtlocation -R .

    The 5.12.11 config output reported the following for OpenGL, X11, and XCB ...

    OpenGL:
    Desktop OpenGL ....................... yes
    OpenGL ES 2.0 ........................ no
    OpenGL ES 3.0 ........................ no
    OpenGL ES 3.1 ........................ no
    OpenGL ES 3.2 ........................ no

    X11 specific:
    XLib ................................. yes
    XCB Xlib ............................. yes
    EGL on X11 ........................... no

    QPA backends:
    ....
    XCB:
    Using system-provided XCB libraries .. no
    XCB XKB .............................. yes
    XCB XInput ........................... yes
    Native painting (experimental) ....... no
    GL integrations:
    GLX Plugin ......................... yes
    XCB GLX .......................... yes
    EGL-X11 Plugin ..................... no

    In order to build the 5.15.3, I changed the above options to,

    -opensource -confirm-license -verbose --prefix=$HOME/5.12.11_install -release -nomake tests -nomake examples -no-libudev -no-use-gold-linker -force-debug-i
    nfo -no-sql-mysql -plugin-sql-sqlite -qt-libjpeg -qt-libpng -sysconfdir /etc/xdg -qt-pcre -qt-harfbuzz -skip qtlocation -R .

    The 5.15.3 config output is the same for those OpenGL, X11 and XCB options,

    OpenGL:
    Desktop OpenGL ....................... yes
    OpenGL ES 2.0 ........................ no
    OpenGL ES 3.0 ........................ no
    OpenGL ES 3.1 ........................ no
    OpenGL ES 3.2 ........................ no

    X11 specific:
    XLib ................................. yes
    XCB Xlib ............................. yes
    EGL on X11 ........................... no

    QPA backends:
    ...
    XCB:
    Using system-provided XCB libraries .. no
    XCB XKB .............................. yes
    XCB XInput ........................... yes
    Native painting (experimental) ....... no
    GL integrations:
    GLX Plugin ......................... yes
    XCB GLX .......................... yes
    EGL-X11 Plugin ..................... no

    Am I missing option and/or environment variable settings needed for 5.15.3 to build/work the same as 5.12.11 ???

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Oct 2024, 19:50 last edited by
      #2

      Hi,

      From memory, some of the dependencies that used to be vendored were taken out in 5.15. It might be such a case. You should check the test results to see exactly what made them fail.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      9 Oct 2024, 01:19

      • Login

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