Qt building from sources - xcb dependencies
-
Hello,
building Qt from sources claims
xcb
is missing.[9/16189] Generating .ibl/TestEnvironment-512.ktx FAILED: qtquick3d/tests/baseline/scenegrabber/.ibl/TestEnvironment-512.ktx /home/joachim/Qt/6.8.0/build/qtquick3d/tests/baseline/scenegrabber/.ibl/TestEnvironment-512.ktx cd /home/joachim/Qt/6.8.0/build/qtquick3d/tests/baseline/scenegrabber && /home/joachim/Qt/6.8.0/build/qtbase/bin/balsam --no-plugins -o /home/joachim/Qt/6.8.0/build/qtquick3d/tests/baseline/scenegrabber/.ibl /home/joachim/Qt/6.8.0/Src/qtquick3d/tests/baseline/data/shared/maps/OpenfootageNET_lowerAustria01-1024.hdr --no-plugins -o /home/joachim/Qt/6.8.0/build/qtquick3d/tests/baseline/scenegrabber/.ibl /home/joachim/Qt/6.8.0/Src/qtquick3d/tests/baseline/data/shared/maps/TestEnvironment-512.exr qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.`
from configure:
... -- [QtBase] Could NOT find XCB_EWMH (missing: XCB_EWMH_LIBRARY XCB_EWMH_INCLUDE_DIR) (found version "") -- [QtBase] Could NOT find XCB_ICCCM (missing: XCB_ICCCM_LIBRARY XCB_ICCCM_INCLUDE_DIR) (found version "") -- [QtBase] Could NOT find XCB_KEYSYMS (missing: XCB_KEYSYMS_LIBRARY XCB_KEYSYMS_INCLUDE_DIR) (found version "") -- [QtBase] Could NOT find XCB_XEVIE (missing: XCB_XEVIE_LIBRARY) (found version "") -- [QtBase] Could NOT find XCB_XPRINT (missing: XCB_XPRINT_LIBRARY) (found version "") -- [QtBase] Found XCB: /usr/lib64/libxcb.so;/usr/lib64/libxcb-render.so;/usr/lib64/libxcb-shape.so;/usr/lib64/libxcb-xfixes.so;/usr/lib64/libxcb-shm.so;/usr/lib64/libxcb-util.so;/usr/lib64/libxcb-composite.so;/usr/lib64/libxcb-cursor.so;/usr/lib64/libxcb-damage.so;/usr/lib64/libxcb-dpms.so;/usr/lib64/libxcb-dri2.so;/usr/lib64/libxcb-dri3.so;/usr/lib64/libxcb-glx.so;/usr/lib64/libxcb-image.so;/usr/lib64/libxcb-present.so;/usr/lib64/libxcb-randr.so;/usr/lib64/libxcb-record.so;/usr/lib64/libxcb-render-util.so;/usr/lib64/libxcb-res.so;/usr/lib64/libxcb-screensaver.so;/usr/lib64/libxcb-sync.so;/usr/lib64/libxcb-xf86dri.so;/usr/lib64/libxcb-xinerama.so;/usr/lib64/libxcb-xinput.so;/usr/lib64/libxcb-xkb.so;/usr/lib64/libxcb-xtest.so;/usr/lib64/libxcb-xv.so;/usr/lib64/libxcb-xvmc.so (found suitable version "1.17.0", minimum required is "1.11") ... -- The following packages have been found: * QtBuildInternals ... * X11 * X11_XCB, A compatibility library for code that translates Xlib API calls into XCB calls, <http://xorg.freedesktop.org/> * XCB (required version >= 1.12), X protocol C-language Binding, <https://xcb.freedesktop.org/> ...
and from
/usr/lib64/
:/usr/lib64 # find -type f -name "libxcb-*" ./libxcb-shape.so.0.0.0 ./libxcb-xinput.so.0.1.0 ./libxcb-xf86dri.so.0.0.0 ./libxcb-render-util.so.0.0.0 ./libxcb-util.so.1.0.0 ./libxcb-xv.so.0.0.0 ./libxcb-cursor.so.0.0.0 ./libxcb-keysyms.so.1.0.0 ./libxcb-composite.so.0.0.0 ./libxcb-xkb.so.1.0.0 ./libxcb-sync.so.1.0.0 ./libxcb-dbe.so.0.0.0 ./libxcb-randr.so.0.1.0 ./libxcb-image.so.0.0.0 ./libxcb-xinerama.so.0.0.0 ./libxcb-screensaver.so.0.0.0 ./libxcb-damage.so.0.0.0 ./libxcb-render.so.0.0.0 ./libxcb-xfixes.so.0.0.0 ./libxcb-dpms.so.0.0.0 ./libxcb-record.so.0.0.0 ./libxcb-present.so.0.0.0 ./libxcb-glx.so.0.0.0 ./libxcb-dri3.so.0.1.0 ./libxcb-dri2.so.0.0.0 ./libxcb-shm.so.0.0.0 ./libxcb-xvmc.so.0.0.0 ./libxcb-res.so.0.0.0 ./libxcb-icccm.so.4.0.0 ./libxcb-xtest.so.0.0.0
What is going wrong?
-
@MasterQ said in Qt building from sources - xcb dependencies:
What is going wrong?
-- [QtBase] Could NOT find XCB_EWMH (missing: XCB_EWMH_LIBRARY XCB_EWMH_INCLUDE_DIR) (found version "")
-- [QtBase] Could NOT find XCB_ICCCM (missing: XCB_ICCCM_LIBRARY XCB_ICCCM_INCLUDE_DIR) (found version "")
-- [QtBase] Could NOT find XCB_KEYSYMS (missing: XCB_KEYSYMS_LIBRARY XCB_KEYSYMS_INCLUDE_DIR) (found version "")
-- [QtBase] Could NOT find XCB_XEVIE (missing: XCB_XEVIE_LIBRARY) (found version "")
-- [QtBase] Could NOT find XCB_XPRINT (missing: XCB_XPRINT_LIBRARY) (found version "")You did not install those libs or it's -devel packages.
-
hm,
I could recently run compiler and linker without any stop. The issue comes only once, in the test module of qt3dquick. Even if some of the xcb components are still not found by configure, it seems that they are also not needed. Except for that one test module.
-
-
-
I have to revise my comment here.
Even if compiler and linker are running without stop, some xcb components are still missing. I have actually no idea where they are hidden in my OS's packages.
As soon as my own program is linking against my built libs, the program is not starting because of missing xcb.
I didn't recognize that the issue is still not gone because QtCreator and CLion were still misaligned and directing to the wrong Qt libs.
I am clueless at the moment. No idea how to install the missing components. My package manager does not give me any useful suggestion which packages I should install.
-
Hi,
Which distribution are you using ?
-
@SGaist said in Qt building from sources - xcb dependencies:
Which distribution are you using ?
I am using Opensuse Tumbleweed
@JoeCFD said in Qt building from sources - xcb dependencies:
@MasterQ It is likely that some libs are missing for plugins.
export QT_DEBUG_PLUGINS=1
to find out which plugins can not be loaded. Install their dependencies.I know the missing plugins. But I cannot find them in my package manager. They are not listet. Maybe they are named differently, I don't know.
I got no suitable answer so far from the Opensuse community. I am still trying.
BTW.:
the env variable gets no hint about the missing xcb. Since I am building Qt from source, the xcb components are not found already at build time. Even if the configure summary states
xcb ... yes
, some components are missing and xcb seems not to be included in the build. It is not listet as available:This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, wayland-egl, linuxfb, vnc, offscreen, minimal, vkkhrdisplay, wayland, minimalegl.
-
@MasterQ said in Qt building from sources - xcb dependencies:
I know the missing plugins.
It's not about missing plug-ins, it's about missing dependencies for plug-ins. You should really follow the advice using QT_DEBUG_PLUGINS to see what is missing...
"This application failed to start because no Qt platform plugin could be initialized" - please follow QT_DEBUG_PLUGINS advice so we can see what is missing to be able to load this plug-in.
-
-
starting my program with QT_DEBUG_PLUGINS=1 gives the following output.
Since the post is marked as spam when I insert the output, I have to go via google drive and to provide a download link instead.
Attachements are not available here?
-
@jsulm said in Qt building from sources - xcb dependencies:
@MasterQ I can't open this file.
I see. If you click on the link a browser should open and show the file as an image. I tried again to insert here as text, but it is marked as spam again, whyever.
please click on the link, do not try to save the target or similar. By clicking on the link your browser is opening a frame. From there you can download.
Here another attemp via my own nextcloud
I had a closer look already. In the file there are no hints about any missing items. xcb is not even mentioned.
-
That is the thing: it was not built due to missing development packages of the dependencies listed as missing that you posted earlier.
-
I know, that's what I already said.
I followed that list
and made a checkmark on every listet item. Nevertheless, configure is claiming about missing xcb components and a built program is not starting.
I also got no helpful reply from Opensuses community.
I am now working on switching to Wayland and to skip X11. With Wayland there are no issues so far.
-
@MasterQ said in Qt building from sources - xcb dependencies:
Nevertheless, configure is claiming about missing xcb components and a built program is not starting.
@Christian-Ehrlicher Already wrote that libs are missing - did you address that?
Here:-- [QtBase] Could NOT find XCB_EWMH (missing: XCB_EWMH_LIBRARY XCB_EWMH_INCLUDE_DIR) (found version "") -- [QtBase] Could NOT find XCB_ICCCM (missing: XCB_ICCCM_LIBRARY XCB_ICCCM_INCLUDE_DIR) (found version "") -- [QtBase] Could NOT find XCB_KEYSYMS (missing: XCB_KEYSYMS_LIBRARY XCB_KEYSYMS_INCLUDE_DIR) (found version "") -- [QtBase] Could NOT find XCB_XEVIE (missing: XCB_XEVIE_LIBRARY) (found version "") -- [QtBase] Could NOT find XCB_XPRINT (missing: XCB_XPRINT_LIBRARY) (found version "")
-
@Christian-Ehrlicher Already wrote that libs are missing - did you address that?
Yes. After post #2 of this thread I checked everything again and installed devel packages as long as they were available.
I now have reinstalled/changed whole OS. After already spending too much time on that issue, a complete new install yesterday was much faster and easier. The journey is still not at its end but for now it is looking promissing.
Maybe today or tomorrow I will see if Qt configures and compiles.
-
@MasterQ said in Qt building from sources - xcb dependencies:
Yes. After post #2 of this thread I checked everything again and installed devel packages as long as they were available
But did you also build and install the XCB plug-in afterwards?
-
Yes, of course. .. I tried at least and failed.
I am now running a fresh OS and it seems the xcb issues are gone. But others arise. Configure says
joachim:~/Qt$ grep "NOT find" configure.log -- [QtBase] Could NOT find Slog2 (missing: Slog2_INCLUDE_DIR Slog2_LIBRARY) -- [QtBase] Could NOT find GSSAPI (missing: GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIRS) -- [QtBase] Could NOT find EGL (missing: HAVE_EGL) (found version "1.5") joachim:~/Qt$
All dependencies could be solved except of the mentioned above. At the moment I can not identify corresponding libs.
for pattern
slog2
I get no hit
for patterngssapi
I get several hits, like
libglobus-gssapi-assist-devel
libglobus-gssapi-error-devel
...for pattern
egl
I get
gegl
glgrib-egl
Any idea how the missing libs are called?
The System now is an Ubuntu 2410.
-
Well, if everything you need is enabled you can ignore these missing parts.
-
ignoring the missing dependencies is difficult since configure stopps.
-- [QtBase] Could NOT find EGL (missing: HAVE_EGL) (found version "1.5") -- Configuring incomplete, errors occurred!
GSSAPI
could now be identified withlibkrb5-dev (1.21.3-3)
FindEGL.cmake
is looking forEGL/egl.h
which can be found inlibegl-dev
and in packageemscripten
. Even iflibegl-devel
is installed, it is not found.FindSlog2.cmake
is looking for/sys/slog2.h
which is not found in any package.To which Qt parts do
EGL
andSlog2
refere to? I then can decide if I can ignore or skip that modules.