jurplel / install-qt-action

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

Cannot run test program on Ubuntu after installed qt #100

Closed hsiang-lee closed 3 years ago

hsiang-lee commented 3 years ago

I use install-qt-action to install qt environment.In step test to run the test program which depends on Qt, it failed.I guess some plugin not installed successfully, or some environment variables not set correctly.Could you please have a look?

Here is the log: Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/home/runner/work/gerber_render/gerber_render/build/tests/platforms" ... loaded library "/home/runner/work/gerber_render/Qt/5.14.2/gcc_64/plugins/platforms/libqxcb.so" qt.qpa.xcb: could not connect to display 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, xcb.

pzhlkj6612 commented 3 years ago

Hi.

Maybe you need to install libxcb-xinerama0.

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

Google the above error message and you can find more information about it.

jurplel commented 3 years ago

I will have install-qt-action install those packages if you guys think it is worth it.

pzhlkj6612 commented 3 years ago

I will have install-qt-action install those packages if you guys think it is worth it.

Hi, I think it would be great. Let's see #88 .

jurplel commented 3 years ago

Ok, will do.

jurplel commented 3 years ago

Done!

hsiang-lee commented 3 years ago

Done!

Thank you!