Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 6.8.0 on yocto & RPi
Forum Updated to NodeBB v4.3 + New Features

Qt 6.8.0 on yocto & RPi

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 294 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.
  • R Offline
    R Offline
    robertharakaly
    wrote on 18 Nov 2024, 13:39 last edited by
    #1

    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 3

    Can somebody advise me how to compile eglfs plugin and to fix the issue ?

    Thank you

    Robert

    1 Reply Last reply
    0

    1/1

    18 Nov 2024, 13:39

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved