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

qtcreator fails to start after last update



  • qtcreators was working then after the lasted update it fails to start. I'm running Kali Linux and all the packages are up to date and I've reinstalled. It looks like qtcreator is looking for libxcb-util.so.1 and my PC only has libxcb-util.so.0.

    $ ls -l /usr/lib/x86_64-linux-gnu/libxcb-util.so*
    lrwxrwxrwx 1 root root 20 Aug 26 2014 /usr/lib/x86_64-linux-gnu/libxcb-util.so -> libxcb-util.so.0.0.0
    lrwxrwxrwx 1 root root 20 Aug 26 2014 /usr/lib/x86_64-linux-gnu/libxcb-util.so.0 -> libxcb-util.so.0.0.0
    -rw-r--r-- 1 root root 26936 Aug 26 2014 /usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0

    $export QT_DEBUG_PLUGINS=1
    $qtcreator
    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt/Tools/QtCreator/bin/platforms" ...
    Cannot load library /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)
    QLibraryPrivate::loadPlugin failed on "/opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)"
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    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, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

    $ ldd /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so
    linux-vdso.so.1 (0x00007ffff12e0000)
    libQt5XcbQpa.so.5 => /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5 (0x00007f9340470000)
    libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f93403f3000)
    libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f9340330000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f9340313000)
    libQt5Gui.so.5 => /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5Gui.so.5 (0x00007f933f9e2000)
    libQt5DBus.so.5 => /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5DBus.so.5 (0x00007f933f756000)
    libQt5Core.so.5 => /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5Core.so.5 (0x00007f933ef5e000)
    libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f933eed7000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f933eeb5000)
    libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f933eeb0000)
    libxcb-icccm.so.4 => /usr/lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f933eea9000)
    libxcb-image.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f933eca4000)
    libxcb-shm.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f933ec9d000)
    libxcb-util.so.1 => not found
    libxcb-keysyms.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f933ea9a000)
    libxcb-randr.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f933ea88000)
    libxcb-render-util.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f933e884000)
    libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f933e875000)
    libxcb-shape.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f933e86e000)
    libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f933e864000)
    libxcb-xfixes.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f933e85a000)
    libxcb-xinerama.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xinerama.so.0 (0x00007f933e855000)
    libxcb-xkb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f933e838000)
    libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f933e80e000)
    libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f933e5fa000)
    libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f933e4b7000)
    libxkbcommon-x11.so.0 => /usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f933e4ad000)
    libxkbcommon.so.0 => /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f933e46a000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f933e464000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f933e297000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f933e151000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f933e137000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f933df72000)
    libxcb-util.so.1 => not found
    libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f933df6d000)
    libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f933de3e000)
    libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f933de0d000)
    libuuid.so.1 => /usr/lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f933de04000)
    libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f933ddca000)
    libbrotlidec.so.1 => /usr/lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f933ddbc000)
    libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f933dd69000)
    libicui18n.so.56 => /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libicui18n.so.56 (0x00007f933d8ce000)
    libicuuc.so.56 => /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libicuuc.so.56 (0x00007f933d516000)
    libicudata.so.56 => /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libicudata.so.56 (0x00007f933bb33000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f93409cf000)
    libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f933ba7b000)
    libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f933ba47000)
    libxcb-util.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-util.so.0 (0x00007f933b83e000)
    libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f933b63a000)
    libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f933b434000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f933b3c1000)
    libbrotlicommon.so.1 => /usr/lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f933b39c000)
    libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f933b2e9000)
    libbsd.so.0 => /usr/lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f933b2cf000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f933b2c4000)
    liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f933b29b000)
    libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f933b1cb000)
    liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f933b1a7000)
    libgcrypt.so.20 => /usr/lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f933b087000)
    libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f933b061000)


  • Lifetime Qt Champion

    @jgarvin

    https://bugreports.qt.io/browse/QTCREATORBUG-24967 looks related - you might comment there.



  • ya.. I figured I could make a soft link but it is an ugly solution.



  • I had the same problem and I solved it by creating a symbolic link, sudo ln -s /usr/lib/x86_64-linux-gnu/libxcb-util.so.0 /usr/lib/x86_64-linux-gnu/libxcb-util.so.1


Log in to reply