[yocto] Qt5 xcb platform plugin missing

Fabian Schwartau fabian at opencode.eu
Sun Nov 30 03:49:44 PST 2014


Hi everyone,

I am trying to build an application using Qt5 Multimedia (playing a 
video). Yocto is latest 1.6. Qt and my application compile just fine but 
when I run the application I get this error:
This application failed to start because it could not find or load the 
Qt platform plugin "xcb".
Well, it is correct, the xcb plugin is missing on the installation. I've 
google now for hours but I cannot find a solution.
When building qtbase the configure script says that xcb backend is enabled:
     XCB .................. yes (system library)

My Application DEPENDS and RDEPENDS on qtbase and qtmultimedia, is that 
correct?
Additionally I have set in my local.conf:
IMAGE_INSTALL_append = " qtbase qt3d qtconnectivity qtmultimedia 
qtserialport qtsvg qtx11extras qplayerexample"
DISTRO_FEATURES_append = " x11 xcb"
qplayerexample is my application.
I am building core-image-x11, DISTRO is poky, MACHINE is beagleboard.
What do I have to do to get the xcb plugin?

What I was wondering: in the poky configuration of yocto 1.6 one of the 
default image features is wayland. I have no idea of wayland (yet) and 
would like to stick to x11 for now. My guess is, that this variable is 
overwritten because I am building core-image-x11. Is that correct?

Fabian



More information about the yocto mailing list