解决:This application failed to start because it could not find or load the Qt platform plugin “xcb“
程序员文章站
2022-03-31 10:01:15
...
Linux系统下在未安装Qt相关组件时运行用Qt5编译好的程序会报以下错误:
This application failed to start because it could not find or load the Qt platform plugin "xcb".
出现这个错误,一般是因为缺少Qt5中的一个库文件依赖,即 libqt5dbus.so.5
打开终端用以下命令即可解决:
sudo apt-get install libqt5dbus5
一般在再运行相关软件都可以成功了,如果还报错或者是其他相关qt5的错误,建议额外下载其他的libqt5xxxx或者去官网下载qt5源码补充到/usr/lib下
推荐阅读
-
Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“问题
-
Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“问题
-
解决:This application failed to start because it could not find or load the Qt platform plugin “xcb“
-
This application failed to start because it could not find or load the Qt platform plugin "dxcb" in
-
This application failed to start because it could not find or load the Qt platform plugin "xcb".
-
This application failed to start because it could not find or load the Qt platform plugin "xcb" in "
-
Qt错误:This application failed to start because it could not find or load the Qt platform plugin cocoa
-
This application failed to start because it could not find or load the Qt platform plugin "xcb".
-
This application failed to start because it could not find or load the Qt platform plugin xcb
-
This application failed to start because it could not find or load the Qt platform plugin “xcb“.