查看完整版本: [-- qtcreator qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even --]

QTCN开发网 -> Qt安装与发布 -> qtcreator qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

孺孜牛 2021-12-18 16:07

qtcreator qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even

在 centos 7 安装qt6.2.2后,出现

error while loading shared libraries:libQt6Core.so.6  问题后 ,高人指点 centos7 版本太低。

然后我安装了centos8的版本, 然后安装qt6.2.2也很顺利, 但是在打开qtcreator时候,出现如下问题:

[root@localhost bin]# ./qtcreator
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, vkkhrdisplay, vnc, xcb.

(网上好多ubuntu系统通过命令: sudo apt-get install libxcb-xinerama0 解决,):我应该怎么解决?请大侠指点。

孺孜牛 2021-12-18 16:56
后来看到一个帖子
https://blog.csdn.net/aggie4628/article/details/110955425
发现是 libxcb-icccm.so.4 如法打开共享文件,然后安装了,还是不行。 安装  libxcb-icccm.so.4 后问题依旧:




我发现  libxcb-icccm.so.4在目录 /usr/lib下 ,我把该路径也加入到了环境变量中, 可以通过  which  libxcb-icccm.so.4 查看到, 但是qt启动还是不行。
请高手指点指点,谢谢。

孺孜牛 2021-12-20 17:14
通过设置qt启动未debug模式,逐步追查, 发现是libxcb-icccm.so.4的问题。 然后查出  xcb-util-wm-0.4.1-12.el8.i686.rpm 报中的 libxcb-icccm.so.4 是32位的, 后来重新安装了:
xcb-util-wm-0.4.1-9.fc26.x86_64.rpm 解决。


查看完整版本: [-- qtcreator qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled