Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Qt platform plugin "xcb" error

Qt platform plugin "xcb" error

Scheduled Pinned Locked Moved QtonPi
18 Posts 4 Posters 27.8k 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.
  • N Offline
    N Offline
    nikohal
    wrote on 15 Mar 2014, 18:38 last edited by
    #1

    Hi, I get this error when I execute program: This application failed to start because it could not find or load the Qt platform plugin "xcb".

    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, wayland-brcm, wayland-egl, wayland, xcb.

    Reinstalling the application may fix this problem.
    Aborted

    How to fix this issue? I have everything in folder what that program needed.
    Here is package: https://onedrive.live.com/redir?resid=AB8B24AE3D535ECC!2470

    Regards, Niko H.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JKSH
      Moderators
      wrote on 16 Mar 2014, 01:06 last edited by
      #2

      Hi,

      How are you trying to deploy an application that you compiled yourself? If so, you are probably missing a shared library.

      Follow the quick-and-dirty guide here to find it: http://qt-project.org/wiki/Deploy_an_Application_on_Windows (it's written for Windows bus also works on Linux -- just replace *.dll files with *.so files)

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nikohal
        wrote on 16 Mar 2014, 07:49 last edited by
        #3

        Hi, All libraries is in the place. But I get still the error.

        Regards, Niko H.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 16 Mar 2014, 21:31 last edited by
          #4

          Hi,

          Do you have all dependencies properly installed on your target computer ? Check running ldd on the xcb plugin

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JKSH
            Moderators
            wrote on 17 Mar 2014, 10:51 last edited by
            #5

            [quote author="nikohal" date="1394956184"]Hi, All libraries is in the place.[/quote]Where are the libraries? Can you list the full path?

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nikohal
              wrote on 17 Mar 2014, 11:04 last edited by
              #6

              pi@raspberrypi ~/thc $ ls
              libicudata.so.48.1.1
              libQt5Gui.so.5
              libicui18n.so.48.1.1
              libQt5Gui.so.5.1.1
              libicuuc.so.48.1.1
              libQt5Widgets.so.5
              libQt5Core.so.5
              libQt5Widgets.so.5.1.1
              libQt5Core.so.5.1.1 platforms (folder)
              libQt5DBus.so.5
              theocopy
              libQt5DBus.so.5.1.1
              theocopy.sh

              1 Reply Last reply
              0
              • N Offline
                N Offline
                nikohal
                wrote on 17 Mar 2014, 11:05 last edited by
                #7

                [quote author="SGaist" date="1395005501"]Hi,

                Do you have all dependencies properly installed on your target computer ? Check running ldd on the xcb plugin[/quote]

                pi@raspberrypi ~/thc/platforms $ ldd libqxcb.so
                /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0xb6f38000)
                libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6f1d000)
                libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0xb6e09000)
                libX11-xcb.so.1 => /usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1 (0xb6e00000)
                libXi.so.6 => /usr/lib/arm-linux-gnueabihf/libXi.so.6 (0xb6dec000)
                libxcb-render-util.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-render-util.so.0 (0xb6de1000)
                libxcb-render.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-render.so.0 (0xb6dd2000)
                libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0xb6db3000)
                libxcb-image.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-image.so.0 (0xb6da7000)
                libxcb-icccm.so.4 => /usr/lib/arm-linux-gnueabihf/libxcb-icccm.so.4 (0xb6d9a000)
                libxcb-sync.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-sync.so.0 (0xb6d8d000)
                libxcb-xfixes.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-xfixes.so.0 (0xb6d80000)
                libxcb-shm.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-shm.so.0 (0xb6d75000)
                libxcb-randr.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-randr.so.0 (0xb6d65000)
                libxcb-shape.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-shape.so.0 (0xb6d5a000)
                libxcb-keysyms.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb-keysyms.so.1 (0xb6d4e000)
                libxkbcommon.so.0 => not found
                libfontconfig.so.1 => /usr/lib/arm-linux-gnueabihf/libfontconfig.so.1 (0xb6d19000)
                libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0xb6c97000)
                libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xb6bb2000)
                libEGL.so => /opt/vc/lib/libEGL.so (0xb6b7f000)
                libQt5DBus.so.5 => not found
                libQt5Gui.so.5 => not found
                libQt5Core.so.5 => not found
                libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6b60000)
                libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6a92000)
                libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6a21000)
                libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb69f9000)
                libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb68ca000)
                /lib/ld-linux-armhf.so.3 (0xb6fcd000)
                libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0xb68b4000)
                libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0xb68a9000)
                libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0xb689d000)
                libxcb-util.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-util.so.0 (0xb6890000)
                libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb6872000)
                libexpat.so.1 => /lib/arm-linux-gnueabihf/libexpat.so.1 (0xb6849000)
                libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb6807000)
                librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb67f8000)
                libvchiq_arm.so => /opt/vc/lib/libvchiq_arm.so (0xb67ea000)
                libvcos.so => /opt/vc/lib/libvcos.so (0xb67d8000)
                libbcm_host.so => /opt/vc/lib/libbcm_host.so (0xb67be000)

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  JKSH
                  Moderators
                  wrote on 17 Mar 2014, 12:30 last edited by
                  #8

                  Hi,

                  [quote author="nikohal" date="1395054352"]
                  libxkbcommon.so.0 => not found
                  [/quote]This is probably the root cause of your problem. Check your XKB installation. If that still doesn't fix things, continue below.

                  [quote author="nikohal" date="1395054352"]
                  libQt5DBus.so.5 => not found
                  libQt5Gui.so.5 => not found
                  libQt5Core.so.5 => not found
                  [/quote]export LD_LIBRARY_PATH, then run ldd again.

                  [quote author="nikohal" date="1395054273"]pi@raspberrypi ~/thc $ ls
                  libicudata.so.48.1.1
                  libQt5Gui.so.5
                  libicui18n.so.48.1.1
                  libQt5Gui.so.5.1.1
                  libicuuc.so.48.1.1
                  libQt5Widgets.so.5
                  libQt5Core.so.5
                  libQt5Widgets.so.5.1.1
                  libQt5Core.so.5.1.1 platforms (folder)
                  libQt5DBus.so.5
                  theocopy
                  libQt5DBus.so.5.1.1
                  theocopy.sh
                  [/quote]That's not all the libraries. The guide says copy EVERYTHING.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    nikohal
                    wrote on 17 Mar 2014, 13:16 last edited by
                    #9

                    Hi,
                    How I do install this dependence libxkbcommon?

                    Regards, Niko H.

                    1 Reply Last reply
                    0
                    • N Offline
                      N Offline
                      nikohal
                      wrote on 17 Mar 2014, 13:25 last edited by
                      #10

                      Hi,
                      I found how to install libxkbcommon. But now I get next error:
                      Linux system - locale: "English"
                      Cant find EGLConfig, returning null config
                      Unable to find an X11 visual which matches EGL config 0
                      QXcbConnection: XCB error: 165 (Unknown), sequence: 149, resource id: 0, major code: 149 (Unknown), minor code: 20

                      How fix this?

                      Regards, Niko H.

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        JKSH
                        Moderators
                        wrote on 17 Mar 2014, 13:43 last edited by
                        #11

                        I don't know, sorry. It looks like an issue with your Linux filesystem, not just Qt -- I think you'll have better luck if ask devs who have Raspberry Pi experience. See http://www.raspberrypi.org/phpBB3/viewtopic.php?t=35099

                        EDIT: You can reach people in the "Qt on Pi" project at http://qt-project.org/wiki/QtonPi-Collaborate

                        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          gRicky
                          wrote on 2 Apr 2014, 15:21 last edited by
                          #12

                          I'm sorry but I'm receiving the same error when I try to launch the qtcreator ide. I have just installed the qt 5 but I can't launch qtcreator for the same reason. Any ideas?

                          1 Reply Last reply
                          0
                          • N Offline
                            N Offline
                            nikohal
                            wrote on 2 Apr 2014, 16:18 last edited by
                            #13

                            You need install dependencies in raspberry pi: sudo apt-get install libdrm-nouveau1a libegl1-mesa-drivers libgbm1 libopenvg1-mesa libxcb-dri2-0 libxcb-image0 libxcb-icccm4 libxcb-sync0 libxcb-keysyms1 libxcb-render-util0 libxcb-randr0

                            1 Reply Last reply
                            0
                            • G Offline
                              G Offline
                              gRicky
                              wrote on 3 Apr 2014, 11:59 last edited by
                              #14

                              I've tried on installing the dependencies you have suggested installing using the apt-get command. Unfortunately that doesn't work. I'm not using raspbian at the moment, I'm trying to install the qt5 onto my ubuntu 10. I've read it is possible to develop App on ubuntu and after compilation move it to the raspbian using the cross-compiling technique.

                              1 Reply Last reply
                              0
                              • N Offline
                                N Offline
                                nikohal
                                wrote on 3 Apr 2014, 18:27 last edited by
                                #15

                                Check your dependencies with command ldd program_name

                                1 Reply Last reply
                                0
                                • G Offline
                                  G Offline
                                  gRicky
                                  wrote on 4 Apr 2014, 08:22 last edited by
                                  #16

                                  ok... now I receive an error when I try to launch qtcreator... it seems the "libCore.so" is missing! How can I check if it is properly installed? What do I have to do to install it?

                                  1 Reply Last reply
                                  0
                                  • G Offline
                                    G Offline
                                    gRicky
                                    wrote on 4 Apr 2014, 14:36 last edited by
                                    #17

                                    I have tried on installing Qt5 from git repository, I have followed the instruction guide described "here":http://qt-project.org/wiki/Building_Qt_5_from_Git and and when I make Qt using the command "make -j4 all" (I have tried both the command) I received the error bellow:

                                    @collect2: ld returned 1 exit status
                                    make[6]: *** [../../../../plugins/platforms/libqxcb.so] Error 1
                                    make[6]: Leaving directory /root/opt/qt5/qtbase/src/plugins/platforms/xcb' make[5]: *** [sub-xcb-plugin-pro-all-ordered] Error 2 make[5]: Leaving directory /root/opt/qt5/qtbase/src/plugins/platforms/xcb'
                                    make[4]: *** [sub-xcb-all] Error 2
                                    make[4]: Leaving directory /root/opt/qt5/qtbase/src/plugins/platforms' make[3]: *** [sub-platforms-all] Error 2 make[3]: Leaving directory /root/opt/qt5/qtbase/src/plugins'
                                    make[2]: *** [sub-plugins-all] Error 2
                                    make[2]: Leaving directory /root/opt/qt5/qtbase/src' make[1]: *** [sub-src-all] Error 2 make[1]: Leaving directory /root/opt/qt5/qtbase'
                                    make: *** [module-qtbase-all] Error 2@

                                    now I really need a help. I have tried all the suggested ways to install qt5 without success.... Why? Is it so difficult to install it?

                                    1 Reply Last reply
                                    0
                                    • G Offline
                                      G Offline
                                      gRicky
                                      wrote on 14 Apr 2014, 08:34 last edited by
                                      #18

                                      Ok, I have installed evrything again and it has started working well. Thank you anyway.

                                      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