Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

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

    Installation and Deployment
    3
    3
    1277
    Loading More Posts
    • 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.
    • viktorsimko
      viktorsimko last edited by viktorsimko

      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 Reply Quote 0
      • hskoglund
        hskoglund last edited by

        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 Reply Quote 0
        • kshegunov
          kshegunov Moderators last edited by

          @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 Reply Quote 1
          • First post
            Last post