没有合适的资源?快使用搜索试试~ 我知道了~
首页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 p...

主要介绍了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“问题问题
主要介绍了Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“问题,本文给大家
分享解决方案,需要的朋友可以参考下
问题描述问题描述
安装Qt5.15.0后,在运行测试用例时弹出错误:
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)
根据问题描述,虽然能够找到但是不能加载Qt平台插件“xcb”,虽然接下来又说重新安装可能能够解决,这个可能的话,还是
尽量作为最下的选择吧。
定位问题定位问题
修改配置文件~/.bashrc:
$ vim ~/.bashrc
在最末尾添加如下语句,会在qtcreator启动时,列出详细的错误提示。
export QT_DEBUG_PLUGINS=1
如下:
保存退出编辑,使配置文件生效:
$ source ~/.bashrc
启动qtcreator会弹出如下详细错误信息:


















安全验证
文档复制为VIP权益,开通VIP直接复制

评论2