I don't can run my application with eglfs

For better contextualization, I am using a verdin imx8mp model board and using a direct image from the toradex website in the case for BSP6, the image in question is the tdx-reference-multimedia. I made an application with QTCreator and I needed to run it with the eglfs window manager but whenever I try something of this nature my operating system returns me an error claiming not to have eglfs. This is the error: QML debugging is enabled.

Only use this in a safe environment. 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: minimal, offscreen, vnc, wayland-egl, wayland, webgl, xcb. ./pl

Where could I be wrong or what am I not interpreting right?

Hi, I’m the Toradex AI Assistant.

I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.

Did you like my answer? :+1: :-1:


EGLFS Platform Plugin Not Available in BSP 6 Multimedia Image

The error you’re encountering indicates that the eglfs Qt platform plugin is not available in the BSP 6 tdx-reference-multimedia image. Based on the available platform plugins shown in your error message, this image appears to be configured for X11/Wayland desktop environments rather than framebuffer-based EGLFS.

Understanding the Issue

The documentation shows that for framebuffer with EGLFS support, specific configuration is required during the image build process (1). The pre-built multimedia image you’re using likely includes X11/Wayland support but not the EGLFS platform plugin.

Configuration Requirements for EGLFS

According to the documentation, to build an image with EGLFS support (framebuffer without X11), you need to configure the build with these settings (1):

DISTRO_FEATURES_remove = "x11 wayland"
IMAGE_INSTALL_remove = "eglinfo-x11"

Available Solutions

Option 1: Use Wayland Instead of EGLFS

Since your current image supports wayland-egl and wayland platforms (as shown in your error), you can run your Qt application using Wayland instead:

your_app -platform wayland-egl

Option 2: Build Custom Image with EGLFS

To get EGLFS support, you would need to build a custom image following the configuration shown in the documentation (1). This involves:

  1. Setting up the Yocto build environment
  2. Configuring local.conf to remove X11/Wayland features
  3. Building a console-based image with Qt5 and EGLFS support

Option 3: Consider Torizon Platform

For a more streamlined development experience with Qt applications, consider using Torizon with Qt containers, which provides simplified deployment and management for Qt applications on Toradex hardware.

Recommendation

For immediate testing, try using the wayland-egl platform that’s already available in your current image. If you specifically need EGLFS for your application requirements, you’ll need to build a custom image with the appropriate configuration.

Best regards,
Toradex AI Assistant.

Hey @Wagner,

From the error message, the problem is that EGLFS is not installed. Since our reference images are for evaluation only, and not production ready, we do not provide plugins or additional packages for application development.

In this situation, you have two options:

Let me know if you find any issues following the articles.

Best regards,

1 Like