|
I want to run spotify-qt on my RPi Zero 2 W, which is connected to the ILI9341 SPI TFT Display and is running dietpi OS. I do: Available platform plugins are: xcb, wayland-brcm, wayland-egl, wayland. I also tried with xcb, even linuxfb as a platform; they all give back the same error, that the Qt platform plugin wasnt found. I have very little expirience with qt, so maybe I am missing some lower level dependency or driver. My question is now is there any suggestion which graphics stack to use with spotify-qt? Maybe inside the build configuration (one or more of the CMakeLists) there is a certain stack baked into the executable and one has to have that in order to run it? Because of limitations I would like to use something lightweight (which is also why I am not running a desktop environment). |
Replies: 3 comments 6 replies
|
This is a display-stack issue, not a spotify-qt CMake choice. The Wayland plugin loaded, but no compositor created a For the packaged AppImage, run a lightweight compositor (for example Weston/Cage) on a working DRM/KMS driver, then launch the client: export XDG_RUNTIME_DIR=/run/user/$(id -u)
weston --backend=drm-backend.so
# second shell
WAYLAND_DISPLAY=wayland-0 ./spotify-qt-v4.0.4-aarch64.AppImage \
--appimage-extract-and-run -platform waylandIf the ILI9341 exposes only QT_QUICK_BACKEND=software ./spotify-qt -platform linuxfb:fb=/dev/fb0References: spotify-qt’s supported platforms/build and Qt embedded Linux platform plugins. |
|
Thanks, your answer helped me progress a little bit (I think).
That ouputs: At the same time the spotifyd program is running in the background as a systemd user service (I dont know if spotifyd is important for spotify-qt to run) After that I start the spotify-qt Appimage via:
But nothing happens (at least now the prior "[inf] Could not load the Qt platform plugin "wayland" in "" even though it was found." is gone). |
|
The missing settings file is expected on first launch; it is not the cause. When no refresh token exists, spotify-qt should open its first-run API setup dialog before creating the main window: https://github.com/kraxarn/spotify-qt/blob/stable/src/main.cpp#L64-L108 Your Weston log shows that the DRM output was enabled at 320x240, so test the compositor separately first: XDG_RUNTIME_DIR=/run/user/1000 WAYLAND_DISPLAY=wayland-1 weston-terminalIf that terminal does not appear on the TFT, the problem is still Weston/output mapping rather than spotify-qt. If it does appear, launch spotify-qt with the variables attached to the same command. This avoids the common case where shell variables were assigned but not exported: env \
XDG_RUNTIME_DIR=/run/user/1000 \
WAYLAND_DISPLAY=wayland-1 \
QT_QPA_PLATFORM=wayland \
QT_LOGGING_RULES='qt.qpa.*=true' \
WAYLAND_DEBUG=1 \
./spotify-qt-v4.0.4-aarch64.AppImage \
--appimage-extract-and-run -platform waylandThen check whether the process remains alive: pgrep -af spotify-qtThe
Please report whether |
I finally got it by just taking a look at my config.txt and comparing it to my physical pin-connections...
In my config.txt I specified the "backlight-gpio" to be on GPIO 23, while I physically connected the displays backlight-pin to GPIO 24.
Now everything works and when I run the appimage the display shows the "Welcome to spotify-qt" prompt.
My apologies for taking your time when the problem was something so simple.
Thank you for your help!