Meta-qt6 yocto AM62 wayland-egl error

Hi,

We are able to build and upload the qt6 project on the AM62. But we are not able to run the wayland-egl or wayland display.

It says
cannot find EGLConfig, returning null config
qt.qpa.wayland: Could not create EGL surface (EGL error 0x3005) qt6

We checked that it is able to run it on platform vnc but not on wayland or wayland-egl

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

Did you like my answer?

:+1: :-1:


Based on the context provided, the issue you’re experiencing with running a Qt6 project on the AM62 platform using Wayland is related to an EGL configuration problem. The error messages indicate that the necessary EGL configurations are not available or properly set up for the Wayland environment. Here are some steps you can take to troubleshoot and potentially resolve the issue:

  1. Verify Wayland Compositor Installation: Ensure that the Wayland compositor is correctly installed and configured on your system. This is crucial for running applications that rely on Wayland.

  2. Check Graphics Driver Compatibility: Make sure that the graphics drivers installed on the AM62 platform are compatible with Wayland and support EGL. Incompatible or missing drivers can lead to the inability to find a valid EGL configuration.

  3. Install Required Dependencies: Confirm that all necessary dependencies for EGL and Wayland are installed and compatible with your Qt6 project. This includes libraries and packages that support EGL on your platform.

  4. Review EGL Configuration: Investigate the EGL configuration settings to ensure they are correctly set up for the Wayland environment. This might involve checking configuration files or environment variables related to EGL.

By addressing these areas, you may be able to resolve the issue and successfully run your Qt6 project on the Wayland display.

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

Screen Capture Issue on Wayland Application Running with Weston Compositor on iMX7D SoM.

Hi @jaynil_embedded ,
What is the image version you are using?

It is the custom build for Qt6.

Unfortunately the QtDesignStudio Imported projects does not work but if we create directly from QtCreator it works.

Design converted to Code QtCreator even simple project does not run unless I make a hardcode of configuration for EGL Surface.