I am trying to run one of the example apps from QT 5.12 without having XServer installed. I am using Ubuntu Linux. When I start it using linuxfb backend, it works fine, but then mapboxgl plugin does not work (probably because of lack of native opengl)
but when I start it with EGLFS backend
./qml_location_mapviewer -platform eglfs
it fails with "Could not initialize egl display"
I tried weston/wayland compositor and -platform wayland everything works as well. Why QT EGLFS does not see my Intel Haswell Open GL device, but everyone else can?
as @derhass suggested it was required to recompile QT with all necessary OpenGL libraries installed first.
Ensure you get EGLFS section similar to this:
Then compile and install the whole thing
Compile your project and run it.