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,,,,,,, into lib, and into platforms, then moved the application with the folders to a fresh Debian 8.3 install.
    I've also created a script with the following content:

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

    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 also, but it seems, it have found everything...

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

  • Moderators

    If there's no typo is not what you want. You'd want to deploy 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