Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Could not find Qt platform plugin 'xcb' on Debian 8.3

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

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 3 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • viktorsimkoV Offline
    viktorsimkoV Offline
    viktorsimko
    wrote on last edited by viktorsimko
    #1

    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...

    1 Reply Last reply
    0
    • hskoglundH Online
      hskoglundH Online
      hskoglund
      wrote on last edited by
      #2

      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)

      1 Reply Last reply
      0
      • kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by
        #3

        @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.

        Read and abide by the Qt Code of Conduct

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved