Hello Mihan,
On Wayland, Failed to created display means that a Wayland client couldn't connect to the compositor/display server.
So you should verify that your compositor is running. Which one are you using?
The environment variable, XDG_RUNTIME_DIR also needs to be set both when the compositor is started and when your client is started.
If clients start when you run them on the device, it might be that the default platform for your qt installation is eglfs, not Wayland. In order to run the applications on Wayland, start it like this:
./myapp -platform wayland
or set
export QT_QPA_PLATFORM=wayland
Note that if you are running a Qt-based compositor, then the compositor should probably still be run with the eglfs backend. BTW the yocto in imx6 does not work with dual display.
Regards