erdin-imx8mp-15034062:~$ flatpak run org.mavlink.qgroundcontrol
Failed to create wl_display (No such file or directory)
qt.qpa.wayland: Failed to initialize EGL display 3001
qt.qpa.plugin: Could not load the Qt platform plugin “wayland-egl” in “” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, xcb.
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
![:-1: :-1:](https://community.toradex.com/images/emoji/twitter/-1.png?v=12)
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:
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
Hi @Abdullah !
We need more details of what you are trying to accomplish. Information like which exact Verdin iMX8MP module you are using, which OS (and version), which carrier board (and version) are very important.
Also, we don’t have experience with flatpak that you have added to your OS. Are you able to reproduce the issue using our Torizon OS or Reference Multimedia Image?
Best regards,
I solved the problem, You need to allow the wayland. Write ‘chmod 666 /run/wayland-0’ to the terminal and its okey