Run Qt app with eglfs plugin on a normal computer

2.2k views Asked by At

I am trying to run a Qt application under EGLFS with Linux Mint on a Macbook Pro.

I have:

  1. Configured and compiled Qt with all the needed flags and dependences.
  2. Tried to run the app with X11 turned off.
  3. Used kms integration.
  4. Installed all the Mesa drivers ( I have an intel GPU ).
  5. Even compiled EGL myself.

But it keeps saying "Unable to create EGL Display". Does anyone knows what am I missing ?

P.S For example I can run weston-launch which I believe it runs over drm-egl.

1

There are 1 answers

3
jendkers On

I had the same problem like you. I have solved it by:

  1. Building Qt with "-opengl desktop" switch.
  2. Making conf file with my displays (look at: http://doc.qt.io/qt-5/embedded-linux.html at section "eglfs with eglfs_kms backend") inside application directory
  3. Exporting QT_QPA_EGLFS_KMS_CONFIG=conf

Then switch to free tty and run application with -platform eglfs argument.