OpenGL/GLX - Cannot create platform OpenGL context](neither GLX nor EGL are enabled)
-
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 ........................ noX11 specific:
XLib ................................. yes
XCB Xlib ............................. yes
EGL on X11 ........................... noQPA 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 ..................... noIn 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 ........................ noX11 specific:
XLib ................................. yes
XCB Xlib ............................. yes
EGL on X11 ........................... noQPA 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 ..................... noAm I missing option and/or environment variable settings needed for 5.15.3 to build/work the same as 5.12.11 ???
-
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.