Qt 6.8.0 on yocto & RPi
-
Hello Everybody,
I want to start with embedded Qt on Yocto. I built a Yocto image for Rpi, with Qt enabled and wanted to run some Qt demo application. I want to use eglfs rather than X11. But when I try to run the compiled demo application I get following message:===================================
root@raspberrypi3:/usr/local/bin# ./ThermostatApp
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
qt.core.plugin.factoryloader: checking directory path "/usr/local/plugins/platforms" ...
qt.core.plugin.factoryloader: looking at "libqxcb.so"
qt.core.plugin.loader: Found metadata in lib /usr/local/plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"archlevel": 0,
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 395264
}qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb")
qt.core.plugin.factoryloader: checking directory path "/usr/local/bin/platforms" ...
qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: xcb.
=====================================
The Qt related Yocto (local.conf) configuration is :
=======================
CORE_IMAGE_EXTRA_INSTALL += " python3 python3-pip nginx iptables openssh coreutils rsync qtbase-tools qtbase qtdeclarative qtimageformats qtbase-plugins liberation-fonts "PACKAGECONFIG_DISTRO_pn-qtbase = "accessibility alsa puseaudio fontconfig eglfs gles2 glib examples tools"
DISTRO_FEATURES:remove = " x11 directfb vulkan wayland "
DISTRO_FEATURES:append = " opengl eglfs alsa gles2 "####Some packages of Qt to be installed
IMAGE_INSTALL += " qtbase-tools qtbase qtdeclarative qtimageformats qtmultimedia qtbase-plugins liberation-fonts qtquickcontrols2 qtquickcontrols "PACKAGECONFIG_FONTS:append_pn-qtbase = " fontconfig"
=======================
I use the latest stable opensource Qt 6.8.0, and Yocto 5.0.4 on Rapsberry Pi 3Can somebody advise me how to compile eglfs plugin and to fix the issue ?
Thank you
Robert