Hi,
My application is trying to get the eglDisplay using below code
display = eglGetDisplay( EGL_DEFAULT_DISPLAY );
on iMX8m where Wayland display system is used, but I'm getting the below error
EGL: Warning: No default display support on wayland
Is EGL_DEFAULT_DISPLAY not supported on Wayland as warned above or am I
supposed to do anything special here?
Please make sure WAYLAND_DISPLAY and XDG_RUNTIME_DIR are exported as required. Strangely this error vanished when we launch the Wayland client application in the same minicom (instead of ssh terminal) where the compositor is launched.
Hi,
Which compositor you use? check that for the display it created & export like below.
export WAYLAND_DISPLAY=wayland-0 // Compositor created display
export XDG_RUNTIME_DIR=/tmp // can be some temporary dir
Thanks Yuri for the document information :-)
Hi Yuri,
How can we check which display is selected in U-boot environment? boot logs?
Hello,
Use section 4.7 (Running Linux OS on the target) of "i.MX_Linux_User's_Guide.pdf"
for more details. Display settings also are provided in the device tree file, which name
is set in fdt_file U-boot environment variable. For example, FAT partition of demo boot
SD card contains several configuration (fdt) files.
Regards,
Yuri.
Hello
Which BSP version are you using?
Best Regards,
Diego.
i.MX Linux Yocto Project BSP 4.9.51_8mq_ga Release, If I'm correct. ajutras@orthogone.com correct me if not.
Hello,
Can you please try exporting the below variable with the below command.
export DISPLAY=:0.0
Best Regards,
Diego.
Hi Diego,
Thanks for suggesting. I tried that export DISPLAY=:0.0, but no help. Meanwhile, wl_display_connect() is behaving differently as below when invoked from ssh terminal as against launching from standard minicom serial terminal (working properly). Any thoughts on this as the same wl_display_connect() which works on serial terminal, doesn't work when launched from ssh terminal?
failed to connect to wayland display: westeros-0
here westeros-0 is the display created by Wayland compositor.