Currently i am trying create a qt5 application on yocto using qtwayland. I used the core-image-minimal and added wayland, weston, qtwayland, qtbase plugins etc. I have added ~/Apps/Wayland/wayland.sourceme and set up weston.ini.
Right now i can start weston and enter the weston desktop, open terminal and run my helloworld app just fine. but when i kill weston or reboot the system to get back to terminal as root. I run my app by doing
source ~/App/Wayland/wayland.sourceme
~/helloworld -platform wayland
and i get Failed to create display (no such file or directory)
even doing export DISPLAY=:0.0 does not work either.
i also followed https://wiki.qt.io/QtWayland too with no luck. how can i run my app using -platform wayland or any of the other platforms.