Error while starting QML Wayland Compositor from console
I'm trying to run Pure QML Wayland Compositor which I took from this page: https://doc.qt.io/qt-5/qtwaylandcompositor-pure-qml-example.html
If I run it in X server, it works fine. But when I try to run it in tty without X, I get the error:
failed to create display (No such file or directory).
I use this command to launch:
./composer -platform wayland
After that I tried
./composer -platform eglfs, but stiil no luck:
Could not open display.
How can I solve this problem?
Hope for your help.