[GH-ISSUE #108] [BUG] build from source - qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found #80

Open
opened 2026-03-04 12:28:48 +03:00 by kerem · 3 comments
Owner

Originally created by @peterpepo on GitHub (Dec 30, 2023).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/108

Describe the bug
Cannot launch after build according to instructions.

debusr@deb12vm:~/programs/onthespot/dist$ ./onthespot_linux 
OTS Version :  0.5
Config version:  0.5
Attempting to use system ffmpeg binary !
Using ffmpeg binary at:  ffmpeg
[2023-12-30 22:11:23,268 :: __init__ :: __init__.py -> 11:                main() :: INFO] -> Starting application in 
3
2
1
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted

To Reproduce
Steps to reproduce the behavior:

  1. Fresh debian12 with xfce install
  2. apt install git python3-pip python3-venv
  3. Follow these steps: https://github.com/casualsnek/onthespot#211-on-linuxnix

Expected behaviour
This comment recommends building from source: https://github.com/casualsnek/onthespot/issues/101#issuecomment-1783716548
The prebuilt binary works for me - in terms I can launch it and works 90% of time, but I experience various issues such as metadata error, therefore I wanted to build from source.

System Information (please complete the following information):

  • OnTheSpot Version: built from source 899e75c
  • OS (I am experiencing same issues on bare metal debian install):
debusr@deb12vm:~/programs/onthespot/dist$ neofetch
      _,met$$$$$gg.          debusr@deb12vm 
   ,g$$$$$$$$$$$$$$$P.       -------------- 
 ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 12 (bookworm) x86_64 
,$$P'              `$$$.     Host: VirtualBox 1.2 
',$$P       ,ggs.     `$$b:   Kernel: 6.1.0-16-amd64 
`d$$'     ,$P"'   .    $$$    Uptime: 17 mins 
$$P      d$'     ,    $$P    Packages: 1385 (dpkg) 
$$:      $$.   -    ,d$$'    Shell: bash 5.2.15 
$$;      Y$b._   _,d$P'      Resolution: 958x968 
Y$$.    `.`"Y$$$$P"'         Terminal: tmux 
`$$b      "-.__              CPU: Intel i7-4790K (2) @ 3.999GHz 
 `Y$$                        GPU: 00:02.0 VMware SVGA II Adapter 
  `Y$$.                      Memory: 508MiB / 1967MiB 
    `$$b.
      `Y$$b.                                         
         `"Y$b._                                     
             `"""

Additional context
Add any other context about the problem here.

Originally created by @peterpepo on GitHub (Dec 30, 2023). Original GitHub issue: https://github.com/casualsnek/onthespot/issues/108 **Describe the bug** Cannot launch after build according to instructions. ``` debusr@deb12vm:~/programs/onthespot/dist$ ./onthespot_linux OTS Version : 0.5 Config version: 0.5 Attempting to use system ffmpeg binary ! Using ffmpeg binary at: ffmpeg [2023-12-30 22:11:23,268 :: __init__ :: __init__.py -> 11: main() :: INFO] -> Starting application in 3 2 1 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb. Aborted ``` **To Reproduce** Steps to reproduce the behavior: 1. Fresh debian12 with xfce install 2. `apt install git python3-pip python3-venv` 3. Follow these steps: https://github.com/casualsnek/onthespot#211-on-linuxnix **Expected behaviour** This comment recommends building from source: https://github.com/casualsnek/onthespot/issues/101#issuecomment-1783716548 The prebuilt binary works for me - in terms I can launch it and works 90% of time, but I experience various issues such as metadata error, therefore I wanted to build from source. **System Information (please complete the following information):** - OnTheSpot Version: built from source **899e75c** - OS (I am experiencing same issues on bare metal debian install): ``` debusr@deb12vm:~/programs/onthespot/dist$ neofetch _,met$$$$$gg. debusr@deb12vm ,g$$$$$$$$$$$$$$$P. -------------- ,g$$P" """Y$$.". OS: Debian GNU/Linux 12 (bookworm) x86_64 ,$$P' `$$$. Host: VirtualBox 1.2 ',$$P ,ggs. `$$b: Kernel: 6.1.0-16-amd64 `d$$' ,$P"' . $$$ Uptime: 17 mins $$P d$' , $$P Packages: 1385 (dpkg) $$: $$. - ,d$$' Shell: bash 5.2.15 $$; Y$b._ _,d$P' Resolution: 958x968 Y$$. `.`"Y$$$$P"' Terminal: tmux `$$b "-.__ CPU: Intel i7-4790K (2) @ 3.999GHz `Y$$ GPU: 00:02.0 VMware SVGA II Adapter `Y$$. Memory: 508MiB / 1967MiB `$$b. `Y$$b. `"Y$b._ `""" ``` **Additional context** Add any other context about the problem here.
Author
Owner

@ghost commented on GitHub (Feb 6, 2024):

There seems to be a missing dependency in the readme. I had your same issue and installing adwaita-qt pulled in a list of about 11 qt related packages (one of them is required), after rebuilding onthespot with them installed it, ran just fine.

<!-- gh-comment-id:1928875353 --> @ghost commented on GitHub (Feb 6, 2024): There seems to be a missing dependency in the readme. I had your same issue and installing adwaita-qt pulled in a list of about 11 qt related packages (one of them is required), after rebuilding onthespot with them installed it, ran just fine.
Author
Owner

@peterpepo commented on GitHub (Feb 6, 2024):

Thank you @just37 , it started successfully after installing adwaita-qt :)
Would you mind sharing details how you figured this out?

<!-- gh-comment-id:1929020253 --> @peterpepo commented on GitHub (Feb 6, 2024): Thank you @just37 , it started successfully after installing `adwaita-qt` :) Would you mind sharing details how you figured this out?
Author
Owner

@ghost commented on GitHub (Feb 6, 2024):

It was just by chance to be honest, I use onthespot whenever I launch spotify so that any songs I play are downloaded but was sick of the white ui. I had 2 hours free last night and coded in an option for a dark mode. The app would not compile and I knew that xcb is qt related so I installed qtcore and the app still would not compile. I installed adwaita-qt because I knew it would pull in all the required deps I was missing, after which the app compiled fine and I uninstalled adwaita-qt.

One of the following is required to build the app:

dev-libs/double-conversion-3.2.1
dev-qt/qtcore-5.15.12-r1
x11-libs/xcb-util-renderutil-0.3.10
x11-libs/xcb-util-wm-0.4.2
dev-qt/qtgui-5.15.12
dev-qt/qtdbus-5.15.12
dev-qt/qtwidgets-5.15.12
dev-qt/qtx11extras-5.15.12

<!-- gh-comment-id:1930011126 --> @ghost commented on GitHub (Feb 6, 2024): It was just by chance to be honest, I use onthespot whenever I launch spotify so that any songs I play are downloaded but was sick of the white ui. I had 2 hours free last night and coded in an option for a dark mode. The app would not compile and I knew that xcb is qt related so I installed qtcore and the app still would not compile. I installed adwaita-qt because I knew it would pull in all the required deps I was missing, after which the app compiled fine and I uninstalled adwaita-qt. One of the following is required to build the app: > dev-libs/double-conversion-3.2.1 > dev-qt/qtcore-5.15.12-r1 > x11-libs/xcb-util-renderutil-0.3.10 > x11-libs/xcb-util-wm-0.4.2 > dev-qt/qtgui-5.15.12 > dev-qt/qtdbus-5.15.12 > dev-qt/qtwidgets-5.15.12 > dev-qt/qtx11extras-5.15.12
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/onthespot#80
No description provided.