In the simulation environment of Ubuntu vscode SDL, lvgl uses Wayland, which can't display and report errors. How can I solve this problem?


I transplanted the official lv_drivers/Wayland to my simulation project, and then added the corresponding steps according to the requirements of the document. One window starts Weston and the other runs the executable file compiled by lvgl. This error occurs:

Warn: lv_ indev_ drv_ register: no display registered hence can't attach the indev to a display (lv_ hal_ indev.c #75 lv_ indev_ drv_ register())
Warn: no display registered to get its active screen (lv_ disp.c #52 lv_ disp_ get_ scr_ act())
Warn: lv_ obj_ create: not display created to so far. No place to assign the new screen (lv_ obj.c #248 lv_ obj_ create())

What MCU/Processor/Board and compiler are you using?


What LVGL version are you using?


What do you want to achieve?

Lvgl can be displayed correctly by Wayland;

What have you tried so far?

Follow the steps of official documents and read the official documents of Wayland. I didn’t find a solution to the problem.

Code to reproduce

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.