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

libqxcb dependency error



  • I need Qt 5.6.3 installed on a Linux system that has 5.9.3 parts included in disrto. I downloaded the source code for Qt 5.6.3 and compiled with the -qt-xcb flag.

    When running our application we get:

    This application failed to start because it could not find or load the Qt platform plugin "xcb"
    in "".
    
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, wayland-egl, wayland, xcb.
    
    Reinstalling the application may fix this problem.
    Aborted
    

    QT_DEBUG says:

    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/z1155046/app/build/debug/bin/platforms" ...
    loaded library "/home/z1155046/Qt-5.6.3/plugins/platforms/libqxcb.so"
    QLibraryPrivate::loadPlugin failed on "/home/z1155046/Qt-5.6.3/plugins/platforms/libqxcb.so" : "Cannot load library /home/z1155046/Qt-5.6.3/plugins/platforms/libqxcb.so: (/home/z1155046/Qt-5.6.3/lib/libQt5Core.so.5: version `Qt_5.9' not found (required by /usr/lib64/libQt5XcbQpa.so.5))"
    

    ldd shows that my compiled libqxcb only looks for libQt5Xcb.so.5 on the system instead of the 5.6.3 instillation :

    ldd ./Qt-5.6.3/plugins/platforms/libqxcb.so
            linux-vdso.so.1 =>  (0x00007ffda7287000)
            libQt5XcbQpa.so.5 => /usr/lib64/libQt5XcbQpa.so.5 (0x00007f028258e000)
            libX11-xcb.so.1 => /usr/lib64/libX11-xcb.so.1 (0x00007f02822a8000)
            libXi.so.6 => /usr/lib64/libXi.so.6 (0x00007f0282098000)
            libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007f0281e90000)
            libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007f0281c74000)
            libdbus-1.so.3 => /usr/lib64/libdbus-1.so.3 (0x00007f0281a24000)
            libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f02817fc000)
            libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0 (0x00007f02815fa000)
            libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f02812e4000)
            libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f02810d9000)
            libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f0280ec7000)
            libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f0280b89000)
            libudev.so.1 => /usr/lib64/libudev.so.1 (0x00007f0280973000)
            libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007f0280731000)
            libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f0280472000)
            libEGL.so.1 => /usr/lib64/libEGL.so.1 (0x00007f028025e000)
            libQt5Gui.so.5 => /usr/lib64/libQt5Gui.so.5 (0x00007f027fda6000)
            libQt5DBus.so.5 => /usr/lib64/libQt5DBus.so.5 (0x00007f0282503000)
            libQt5Core.so.5 => /usr/lib64/libQt5Core.so.5 (0x00007f027f8f9000)
            libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007f027f66d000)
            libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f027f451000)
            libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f027f149000)
            libm.so.6 => /usr/lib64/libm.so.6 (0x00007f027ee47000)
            libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007f027ec31000)
            libc.so.6 => /usr/lib64/libc.so.6 (0x00007f027e863000)
            libxcb-xkb.so.1 => /usr/lib64/libxcb-xkb.so.1 (0x00007f027e647000)
            libxcb-render-util.so.0 => /usr/lib64/libxcb-render-util.so.0 (0x00007f027e443000)
            libxcb-render.so.0 => /usr/lib64/libxcb-render.so.0 (0x00007f027e235000)
            libxcb-sync.so.1 => /usr/lib64/libxcb-sync.so.1 (0x00007f027e02e000)
            libxcb-xfixes.so.0 => /usr/lib64/libxcb-xfixes.so.0 (0x00007f027de26000)
            libxcb-xinerama.so.0 => /usr/lib64/libxcb-xinerama.so.0 (0x00007f027dc23000)
            libxcb-randr.so.0 => /usr/lib64/libxcb-randr.so.0 (0x00007f027da13000)
            libxcb-image.so.0 => /usr/lib64/libxcb-image.so.0 (0x00007f027d80e000)
            libxcb-shm.so.0 => /usr/lib64/libxcb-shm.so.0 (0x00007f027d60a000)
            libxcb-keysyms.so.1 => /usr/lib64/libxcb-keysyms.so.1 (0x00007f027d407000)
            libxcb-icccm.so.4 => /usr/lib64/libxcb-icccm.so.4 (0x00007f027d202000)
            libxcb-shape.so.0 => /usr/lib64/libxcb-shape.so.0 (0x00007f027cffe000)
            libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f027cdfa000)
            libuuid.so.1 => /usr/lib64/libuuid.so.1 (0x00007f027cbf5000)
            libsystemd.so.0 => /usr/lib64/libsystemd.so.0 (0x00007f027c9c4000)
            libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f027c7c0000)
            libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007f027c55e000)
            librt.so.1 => /usr/lib64/librt.so.1 (0x00007f027c356000)
            libcap.so.2 => /usr/lib64/libcap.so.2 (0x00007f027c151000)
            libdw.so.1 => /usr/lib64/libdw.so.1 (0x00007f027bf00000)
            /lib64/ld-linux-x86-64.so.2 (0x00007f02824aa000)
            libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f027bcd6000)
            libz.so.1 => /usr/lib64/libz.so.1 (0x00007f027bac0000)
            libbz2.so.1 => /usr/lib64/libbz2.so.1 (0x00007f027b8b0000)
            libpng15.so.15 => /usr/lib64/libpng15.so.15 (0x00007f027b685000)
            libGLdispatch.so.0 => /usr/lib64/libGLdispatch.so.0 (0x00007f027b3cf000)
            libharfbuzz.so.0 => /usr/lib64/libharfbuzz.so.0 (0x00007f027b132000)
            libicui18n.so.50 => /usr/lib64/libicui18n.so.50 (0x00007f027ad33000)
            libicuuc.so.50 => /usr/lib64/libicuuc.so.50 (0x00007f027a9ba000)
            libicudata.so.50 => /usr/lib64/libicudata.so.50 (0x00007f02793e7000)
            libpcre2-16.so.0 => /usr/lib64/libpcre2-16.so.0 (0x00007f027917b000)
            libGLX.so.0 => /usr/lib64/libGLX.so.0 (0x00007f0278f49000)
            libxcb-util.so.1 => /usr/lib64/libxcb-util.so.1 (0x00007f0278d43000)
            libselinux.so.1 => /usr/lib64/libselinux.so.1 (0x00007f0278b1c000)
            liblzma.so.5 => /usr/lib64/liblzma.so.5 (0x00007f02788f6000)
            liblz4.so.1 => /usr/lib64/liblz4.so.1 (0x00007f02786e7000)
            libgcrypt.so.11 => /usr/lib64/libgcrypt.so.11 (0x00007f0278466000)
            libgpg-error.so.0 => /usr/lib64/libgpg-error.so.0 (0x00007f0278261000)
            libresolv.so.2 => /usr/lib64/libresolv.so.2 (0x00007f0278047000)
            libattr.so.1 => /usr/lib64/libattr.so.1 (0x00007f0277e42000)
            libelf.so.1 => /usr/lib64/libelf.so.1 (0x00007f0277c2a000)
            libgraphite2.so.3 => /usr/lib64/libgraphite2.so.3 (0x00007f02779fc000)
    

    Is there a way to point the libqxb dependency to the correct version of libQt5XcbQpa that is on the 5.6.3 installation?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Can you show the full configure line you use ?

    On a related note, why not use the pre-built version of 5.6.3 ?


Log in to reply