您的位置:首页 > 科技 > IT业 > linux安装Qt报错:qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in问题...

linux安装Qt报错:qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in问题...

2024/9/29 4:18:31 来源:https://blog.csdn.net/u012372584/article/details/140986914  浏览:    关键词:linux安装Qt报错:qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in问题...

一般出现qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in问题,主要是安装qt5后,缺少一些链接库,通过以下方法定位到缺少哪个链接库
在环境中 export QT_DEBUG_PLUGINS=1
执行出现该问题到程序,便可以定位到缺失的链接库。
在ubuntu系统中一般是libxcb-xinerama.so.0,通过sudo apt-get install libxcb-xinerama0
在centos系统中一般是libxkbcommon-x11.so.0,通过yum -y install libxkbcommon-x11-devel
提供两个通过文件名查找包名到网站
http://rpm.pbone.net
http://rpmfind.net

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com