LongSoft / UEFITool

UEFI firmware image viewer and editor
BSD 2-Clause "Simplified" License
4.46k stars 630 forks source link

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" #390

Closed Pandapip1 closed 8 months ago

Pandapip1 commented 9 months ago

When attempting to start uefitool, I get the following error:

gavin@gavin-ideapad-1:~$ uefitool 
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted

From my limited research it appears this is due to the fact that I am not running an X11 session (I am using Plasma Wayland instead).

NikolajSchlej commented 9 months ago

Check if any solutions listed here will fix it for you.

NikolajSchlej commented 9 months ago

Also, providing more details about your OS version and environment would be helpful.

Pandapip1 commented 9 months ago

The OS that I installed was elementary OS, but I've made so many customizations to it that basically all the evidence that's left is the apt sources, the app store, and the neofetch data.

Again, the problem is almost certainly that I'm using Wayland instead of X11. Never mind, also fails to launch on XOrg.

Here's hopefully all the information on my system you could ever want:

gavin@gavin-ideapad-1:~$ neofetch 
         eeeeeeeeeeeeeeeee            gavin@gavin-ideapad-1 
      eeeeeeeeeeeeeeeeeeeeeee         --------------------- 
    eeeee  eeeeeeeeeeee   eeeee       OS: elementary OS 7.1 Horus x86 
  eeee   eeeee       eee     eeee     Host: 82R4 IdeaPad 1 15ALC7 
 eeee   eeee          eee     eeee    Kernel: 6.5.0-18-generic 
eee    eee            eee       eee   Uptime: 19 mins 
eee   eee            eee        eee   Packages: 3569 (dpkg), 91 (flat 
ee    eee           eeee       eeee   Shell: bash 5.1.16 
ee    eee         eeeee      eeeeee   Resolution: 1920x1080 
ee    eee       eeeee      eeeee ee   DE: Plasma 5.24.7 
eee   eeee   eeeeee      eeeee  eee   WM: KWin 
eee    eeeeeeeeee     eeeeee    eee   WM Theme: Layan-solid 
 eeeeeeeeeeeeeeeeeeeeeeee    eeeee    Theme: [Plasma], Breeze [GTK2/3 
  eeeeeeee eeeeeeeeeeee      eeee     Icons: [Plasma], Fluent-dark [G 
    eeeee                 eeeee       Terminal: BlackBox 
      eeeeeee         eeeeeee         CPU: AMD Ryzen 7 5700U with Rad 
         eeeeeeeeeeeeeeeee            GPU: AMD ATI 04:00.0 Lucienne 
                                      Memory: 5017MiB / 9802MiB
gavin@gavin-ideapad-1:~$ sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libxcb-sync-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-damage0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-ewmh1-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-imdkit-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-present-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-xfixes0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-xf86dri0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-sync0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb1-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-composite0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-xinerama0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-xv0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-dri3-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-xkb-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-image0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-event1-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-dri2-0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-util-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-shm0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-res0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-shape0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-render-util0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-xvmc0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-ewmh-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-render0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-cursor-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-randr0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-xinput-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-dpms0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-record0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-xtest0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-icccm1-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-reply1-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-property1-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-screensaver0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-keysyms1-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-icccm4-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-aux0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-util0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-glx0-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-xrm-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-atom1-dev' for regex '^libxcb.*-dev'
Note, selecting 'libxcb-sync-dev' instead of 'libxcb-sync0-dev'
libglu1-mesa-dev is already the newest version (9.0.2-1).
libxcb-composite0-dev is already the newest version (1.14-3ubuntu3).
libxcb-damage0-dev is already the newest version (1.14-3ubuntu3).
libxcb-dpms0-dev is already the newest version (1.14-3ubuntu3).
libxcb-dri2-0-dev is already the newest version (1.14-3ubuntu3).
libxcb-dri3-dev is already the newest version (1.14-3ubuntu3).
libxcb-ewmh-dev is already the newest version (0.4.1-1.1build2).
libxcb-glx0-dev is already the newest version (1.14-3ubuntu3).
libxcb-icccm4-dev is already the newest version (0.4.1-1.1build2).
libxcb-image0-dev is already the newest version (0.4.0-2).
libxcb-keysyms1-dev is already the newest version (0.4.0-1build3).
libxcb-present-dev is already the newest version (1.14-3ubuntu3).
libxcb-randr0-dev is already the newest version (1.14-3ubuntu3).
libxcb-record0-dev is already the newest version (1.14-3ubuntu3).
libxcb-render-util0-dev is already the newest version (0.3.9-1build3).
libxcb-render0-dev is already the newest version (1.14-3ubuntu3).
libxcb-res0-dev is already the newest version (1.14-3ubuntu3).
libxcb-screensaver0-dev is already the newest version (1.14-3ubuntu3).
libxcb-shape0-dev is already the newest version (1.14-3ubuntu3).
libxcb-shm0-dev is already the newest version (1.14-3ubuntu3).
libxcb-sync-dev is already the newest version (1.14-3ubuntu3).
libxcb-util-dev is already the newest version (0.4.0-1build2).
libxcb-util0-dev is already the newest version (0.4.0-1build2).
libxcb-xf86dri0-dev is already the newest version (1.14-3ubuntu3).
libxcb-xfixes0-dev is already the newest version (1.14-3ubuntu3).
libxcb-xinerama0-dev is already the newest version (1.14-3ubuntu3).
libxcb-xinput-dev is already the newest version (1.14-3ubuntu3).
libxcb-xkb-dev is already the newest version (1.14-3ubuntu3).
libxcb-xtest0-dev is already the newest version (1.14-3ubuntu3).
libxcb-xv0-dev is already the newest version (1.14-3ubuntu3).
libxcb-xvmc0-dev is already the newest version (1.14-3ubuntu3).
libxcb1-dev is already the newest version (1.14-3ubuntu3).
libxi-dev is already the newest version (2:1.8-1build1).
libxkbcommon-dev is already the newest version (1.4.0-1).
libxkbcommon-x11-dev is already the newest version (1.4.0-1).
libxrender-dev is already the newest version (1:0.9.10-1build4).
libxcb-cursor-dev is already the newest version (0.1.1-4ubuntu1).
libxcb-imdkit-dev is already the newest version (1.0.3-1).
libxcb-xrm-dev is already the newest version (1.0-3).
libx11-xcb-dev is already the newest version (2:1.7.5-1ubuntu0.3).
0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
gavin@gavin-ideapad-1:~$ which uefitool 
/home/gavin/bin/uefitool
gavin@gavin-ideapad-1:~$ echo $XDG_SESSION_TYPE 
x11
gavin@gavin-ideapad-1:~$ uefitool 
qt.qpa.plugin: Could not find the Qt platform plugin "offscreen" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted
NikolajSchlej commented 9 months ago

Now you have a different plugin failing, so it feels like there's something wrong with your Qt installation. Can you run UEFITool with QT_DEBUG_PLUGINS=1: QT_DEBUG_PLUGINS=1 uefitool and share the output here?

NikolajSchlej commented 8 months ago

Installed elOS 7.1 Horus on emulated x86-64 QEMU machine, then installed UEFITool from Flatpack like this:

It installed some additional components and the resulting app runs just fine.

Screenshot 2024-03-09 at 9 56 21 AM