Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic x86_64 device: Qt Warning: Could not find the Qt platform plugin "eglfs" in "" #44

Open
beralt85 opened this issue Nov 6, 2023 · 2 comments
Labels
enhancement New feature or request Upstream Bug

Comments

@beralt85
Copy link

beralt85 commented Nov 6, 2023

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.sh
    Platform '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 plugin is 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?

@veldenb
Copy link
Owner

veldenb commented Nov 6, 2023

I think eglfs is currently not available in the pre-build x86 moonlight-qt, see also moonlight-stream/moonlight-qt@b1c8005. I have opened a issue to get this supported: moonlight-stream/moonlight-qt#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.

@veldenb veldenb added enhancement New feature or request Upstream Bug labels Nov 6, 2023
@beralt85
Copy link
Author

beralt85 commented Nov 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Upstream Bug
Projects
None yet
Development

No branches or pull requests

2 participants