Could not find Qt platform plugin 'xcb' on Debian 8.3



  • Hi everyone!

    I've compiled a simple Qt application on Ubuntu 15.10.
    I've created a lib and a platforms folder int the same directory where the executable is.
    I've copied libicudata.so.54, libicui18n.so.54, libicuuc.so.54, libQt5Core.so.5, libQt5DBus.so.5, libQt5Gui.so.5, libQt5Widgets.so.5,
    libQt5XcbQpa.so.5 into lib, and libxcb.so into platforms, then moved the application with the folders to a fresh Debian 8.3 install.
    I've also created a start.sh script with the following content:

    export LD_LIBRARY_PATH=$PWD/lib
    export QT_QPA_PLATFORM_PLUGIN_PATH=$PWD/platforms
    ./QtTestApp 
    

    But when I start the application using the script it says that it couldn't find Qt platform plugin 'xcb'...
    I've run ldd on the application itself, and on the libxcb.so also, but it seems, it have found everything...



  • Hi, with Qt 5.5 you also need to change the rpath of libxcb.so to $ORIGIN:
    chrpath -r \$ORIGIN libxcb.so
    (so that its dependency of ibQt5XcbQpa.so.5 is found ok)


  • Qt Champions 2016

    @viktorsimko
    Hello,
    If there's no typo libxcb.so is not what you want. You'd want to deploy libqxcb.so which on my system is in: /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms (for Qt5 installed with apt).

    Kind regards.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.