Running QGroundControl with flatpak on yocto(aarch64 architecture))

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

It seems you’re encountering an issue with running QGroundControl using Flatpak on your Yocto-based system, specifically related to the Wayland display server and EGL display initialization. Let’s go through some steps to help you troubleshoot and resolve this:

  1. Verify Wayland Installation: First, ensure that Wayland is properly installed and configured. You can check if the Wayland compositor is running by executing echo $WAYLAND_DISPLAY in your terminal. If this command returns nothing, it might indicate that Wayland is not running.

  2. Check Qt Platform Plugins: The error message suggests that the “wayland-egl” Qt platform plugin could not be loaded. Verify that the necessary Qt plugins for Wayland are installed. You may need to install additional packages or ensure your Qt installation includes support for Wayland.

  3. EGL and Graphics Drivers: Make sure that the EGL libraries and the appropriate graphics drivers for your hardware are installed, as these are crucial for initializing the EGL display.

  4. Environment Variables: Set the QT_QPA_PLATFORM environment variable to specify the platform plugin. For Wayland, use:

    export QT_QPA_PLATFORM=wayland
    

    If Wayland is not functioning, you might try using X11 as a fallback by setting:

    export QT_QPA_PLATFORM=xcb
    
  5. Flatpak Permissions: Ensure that Flatpak has the necessary permissions to access the display server. You can adjust permissions using Flatpak commands or by modifying the Flatpak manifest if you have access to it.

  6. Alternative Display Servers: If Wayland continues to cause issues, consider using an alternative display server like X11, which might be more stable depending on your configuration.

By following these steps, you should be able to diagnose and potentially resolve the issues with running QGroundControl on your system. If problems persist, further investigation into the specific configuration of your Yocto build and the Flatpak environment may be necessary.

Best regards,
Toradex AI Assistant.

Please, also check if these links can help you solve your problem:

https://community.nxp.com/t5/i-MX-Processors/Fail-to-startup-Qt-project-in-imx6-of-wayland/m-p/1292532/highlight/true

Gst-launch-1.0 video playback fail on verdin-am62.