现像:
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)
问题原因
$ vim ~/.bashrc
export QT_DEBUG_PLUGINS=1 //添加启动调试信息输出
$ source ~/.bashrc
发现加载libqxcb.so库的时候,缺少库文件libxcb-xinerama
解决方法:
//根据报错,缺少啥安装啥库,我这一步已经解决了
sudo apt-get install libxcb-xinerama0
参考链接:
https://blog.youkuaiyun.com/LOVEmy134611/article/details/107212845/