Generic x86_64 device: Qt Warning: Could not find the Qt platform plugin "eglfs" in ""
General info
- Running kodi-gbm as a standalone application with no X/wayland
- plugin.program.moonlight-qt version: 0.4.1 (but also tried 0.4.0 and 0.3.1)
- System: debian based (actually on a proxmox ve host,
6.2.16-19-pve #1 SMP PREEMPT_DYNAMIC PMX 6.2.16-19 (2023-10-24T12:07Z) x86_64 GNU/Linux- I know that I am not technically fulfilling the stated requirements, but maybe we can figure out what the problem is here
- output of
get_platform.shPlatform 'x86_64' running 'debian' detected, using platform generic...
Behaviour
After trying to start the plugin, kodi crashes.
Expected behaviour
Moonlight-qt should run/configure/update itself
Further information
-
It seems that the qt-bootstrapping does not work. The
eglfs pluginis not found -
kodi relevant logs:
Launching moonlight-qt: systemd-run --user --setenv=ADDON_PROFILE_PATH="/var/lib/kodi/.kodi/userdata/addon_data/plugin.program.moonlight-qt" --setenv=PULSE_SINK="Default" bash /var/lib/kodi/.kodi/addons/plugin.program.moonlight-qt/resources/bin/launch_moonlight-qt.sh
- plugin logs:
Platform 'x86_64' running 'debian' detected, using platform generic...
Running without window manager...
Detected resolution 1920,1080...
Using Qt scale factor 0.64...
Using Kodi hooks for debian...
--- Starting Moonlight ---
00:00:00 - Qt Info: Unable to detect Wayland or X11, so EGLFS will be used by default. Set QT_QPA_PLATFORM to override this.
00:00:00 - Qt Info: Setting display mode by default. Set QT_QPA_EGLFS_ALWAYS_SET_MODE=0 to override this.
00:00:00 - Qt Warning: Could not find the Qt platform plugin "eglfs" in ""
00:00:00 - Qt Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
bootstrap_moonlight-qt.sh: line 148: 1037556 Aborted ./moonlight-qt "$@"
Running as unit: run-rae3c3b6b545c4061a396636cc801de60.service
Ideas for solution
I am not sure if the required qt plugin eglfs is supposed to be installed by bootstrap_moonlight_qt.sh, or if it looking for system packages. If the latter, I might simply need to install some additional packages or manually build qt?
I think eglfs is currently not available in the pre-build x86 moonlight-qt, see also https://github.com/moonlight-stream/moonlight-qt/commit/b1c8005d1adfbde4301ddc1121d9b5851a4c98e7. I have opened a issue to get this supported: https://github.com/moonlight-stream/moonlight-qt/issues/971
The only way that I'm aware of to get eglfs working on x86 is by building moonlight yourself. You could try to install Qt-libraries (see here) but if it works it will probably use the software decoder instead of the hardware decoder.
Hey veldenb, thanks a lot for the information and your work. Installing the Qt libraries as in the Dockerfile in your link on the host system had no effect (in fact, all of them besides libxcursor were already installed). Since I will need Hardware acceleration to work to make it worthwhile, I think I have no other option than to wait for an upstream fix. Since I have no experience with developing kodi plugins, even if I build moonlight-qt myself, I wouldn't be sure of how to get it integrated in kodi. Thanks already, let me know if I can help with any testing.