jurplel / install-qt-action

Install Qt on your Github Actions workflows with just one simple action
MIT License
459 stars 78 forks source link

qt 5.15 can't find 'xcb' #126

Closed slspencer closed 2 years ago

slspencer commented 2 years ago

After updating our build with install-qt-action to Qt5.15 we get a qt.qpa.plugin error about not being able to load 'xcb'.

Last week (Oct 21) this was posted on the StackOverflow thread as the fix:

sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev

from https://stackoverflow.com/questions/68036484/qt6-qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-thou.

Here's the error message in our build:


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, xcb.

Aborted (core dumped)```

BTW, thank for this workflow action
JohnDTill commented 2 years ago

For me, the problem was that the runner doesn't have a display, so I needed to run my testing executable with the argument "-platform offscreen"

pzhlkj6612 commented 2 years ago

Hi @slspencer ,

  1. What the version of this action are you using?
  2. Please execute export QT_DEBUG_PLUGINS=1 and run your program, and then copy the output here.