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. Failed to load platform plugin "xcb"

Failed to load platform plugin "xcb"

Scheduled Pinned Locked Moved Installation and Deployment
13 Posts 8 Posters 19.7k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mrajanna
    wrote on last edited by
    #1

    Hello Group,

    I generated executable using Qt5 beta on ubuntu 12.04. Now I copied the executable and required shared libraries to other Ubuntu 12.04(that doen't have qt5 installed) machine. But when I try to execute ./execuatble_filename, I am encountering with below error.

    Failed to load platform plugin "xcb". Available platforms are:

    Aborted (core dumped)

    I have installed below libraries.
    libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0 libxcb-render-util0-dev

    Please help me.

    Regards
    Mohan

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      You will have to deploy the Qt plugins as well, at least the <code>xcb</code> platform plugin.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mrajanna
        wrote on last edited by
        #3

        Please tell me how could I deploy Qt plugins or xcb platform plugins.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          After building Qt you'll find a set of libraries in <code>qtbase/plugins</code>. You need at least <code>qtbase/plugins/platforms/xcb</code>.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mrajanna
            wrote on last edited by
            #5

            FYI: I din't build Qt5. I have only installed it.

            Under /home/mohan/Qt5.0.0beta1/Src/Qt/5.0.0-beta1/qtbase/src/plugins/platforms/xcb, I don't see any library files

            home/mohan/Qt5.0.0beta1/Desktop/Qt/5.0.0-beta1/gcc/plugins/platforms, I found libxcb.so file

            I even tried copying this library under /usr/lib of othe linux system. But still no breakthrough.

            1 Reply Last reply
            0
            • O Offline
              O Offline
              oreja
              wrote on last edited by
              #6

              I had the same issue. I had forgotten to actually install Qt i.e. after "./configure" and "make" I didn't run "make install". After "make install" everything is fixed.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                phuongvu_0203
                wrote on last edited by
                #7

                Hi mrajanna,
                I get the same issue.
                Have you fixed it yet? Could you give me some ideas?

                @oreja
                hi oreja
                I trying open terminal (Ubuntu) and cd to qtbase/
                do "./configure" and "make" and "make install" , it says:
                bq. make: *** No targets specified and no makefile found. Stop.

                I don't know how to fix it...

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  sidiabale
                  wrote on last edited by
                  #8

                  I've had the exact same problem for some days now and I was wondering if anyone has found a solution and they are willing to share.

                  @Failed to load platform plugin "xcb". Available platforms are:

                  Aborted@

                  In my case, I install qt on one system, copy it to another system and try to build and run my application. On the system where I installed Qt, everything works fine. However, on the system where I have copied Qt and used it to build my application, I get the error:

                  Both systems run Ubuntu 12.04 (32-bit). It appears the qt installer does something extra which I am yet to figure out. Any help will be appreciated

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    vladstelmahovsky
                    wrote on last edited by
                    #9

                    remove qt.conf from the folder with your app

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      sidiabale
                      wrote on last edited by
                      #10

                      There's no qt.conf file in the app folder

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        Adrien Leravat
                        wrote on last edited by
                        #11

                        When you compile/install Qt, some paths are hard coded into qmake, thus making the copy Qt directory not working properly. Please try installing, instead of copying it.

                        Adeneo Embedded - www.adeneo-embedded.com

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          goblincoding
                          wrote on last edited by
                          #12

                          Hi there,

                          This is how I solved my deployment issues to 12.04.:

                          "Deploying Qt5 Apps on Ubuntu 12.04":http://goblincoding.com/2013/11/07/deploying-qt-5-applications-on-ubuntu-12-04/

                          Hope that helps!

                          http://www.goblincoding.com

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            sidiabale
                            wrote on last edited by
                            #13

                            Hi All,

                            In my case, I solved the problem by explicitly specifying the QT_PLUGIN_PATH to point to <qt_installation_home>/gcc/plugins.

                            PS: I subsequently encountered problems with QML modules not being found which I fixed by explicitly specifying the QML2_IMPORT_PATH to point to <qt_installation_home>/gcc/qml.

                            1 Reply Last reply
                            0

                            • Login

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