这篇文章上次修改于 266 天前,可能其部分内容已经发生变化,如有疑问可询问作者。

Ubuntu 16.04.7 上安装 qt-opensource-linux-x64-5.12.10 后不能启动,启动报错:

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

Aborted (core dumped)

解决办法:

sudo apt-get install libxcb-xinerama0