Qt platform plugin "xcb" error
-
wrote on 15 Mar 2014, 18:38 last edited by
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.
AbortedHow to fix this issue? I have everything in folder what that program needed.
Here is package: https://onedrive.live.com/redir?resid=AB8B24AE3D535ECC!2470Regards, Niko H.
-
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)
-
wrote on 16 Mar 2014, 07:49 last edited by
Hi, All libraries is in the place. But I get still the error.
Regards, Niko H.
-
Hi,
Do you have all dependencies properly installed on your target computer ? Check running ldd on the xcb plugin
-
[quote author="nikohal" date="1394956184"]Hi, All libraries is in the place.[/quote]Where are the libraries? Can you list the full path?
-
wrote on 17 Mar 2014, 11:04 last edited by
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 -
wrote on 17 Mar 2014, 11:05 last edited by
[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) -
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. -
wrote on 17 Mar 2014, 13:16 last edited by
Hi,
How I do install this dependence libxkbcommon?Regards, Niko H.
-
wrote on 17 Mar 2014, 13:25 last edited by
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: 20How fix this?
Regards, Niko H.
-
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
-
wrote on 2 Apr 2014, 15:21 last edited by
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?
-
wrote on 2 Apr 2014, 16:18 last edited by
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
-
wrote on 3 Apr 2014, 11:59 last edited by
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.
-
wrote on 3 Apr 2014, 18:27 last edited by
Check your dependencies with command ldd program_name
-
wrote on 4 Apr 2014, 08:22 last edited by
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?
-
wrote on 4 Apr 2014, 14:36 last edited by
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?
-
wrote on 14 Apr 2014, 08:34 last edited by
Ok, I have installed evrything again and it has started working well. Thank you anyway.