ERROR: This application failed to start because it could not find or load the Qt platform plugin "xcb"

Hi

I have created an console-trdx-image for my apalis imx6 device with Qt5 libraries. and while running a Qt helloworld application i have an error :
This application failed to start because it could not find or load the Qt platform plugin “xcb”.
Available platform plugins are: eglfs, minimal, minimalegl, offscreen.
Reinstalling the application may fix this problem.
Process killed by signal

I also added DISTRO_FEATURES_remove = “x11 wayland” and IMAGE_INSTALL_remove = “eglinfo-x11”
and append IMAGE_INSTALL_append = " qtbase qtbase-fonts qtbase-plugins cinematicexperience"

what would be the error?

To use xcb you can not include DISTRO_FEATURES_remove = “x11”, as you have support eglfs, you can run with eglfs without Graphical server (X11).

try:

./hello -platform eglfs

Cleiton Bueno

Blog | Linkedin | B2Open