linux启动qt登陆时_在Deepin系统下启动Qt6提示无法将xcb加载的解决方案

经测试Qt6是可以在Deepin系统下运行的,能正常编译并执行。当前Qt6已经进入Arch的官方仓库,Arch的用户有福了,有用户测试可以在Deepin系统下安装Qt6,但启动时有错误产生,造成无法启动的情况,不过问题是可以解决的。

错误

./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, vnc, xcb.

大意为:

qt.qpa.plugin:即使找到Qt平台插件“xcb”,也无法将其加载到""中。此应用程序无法启动,因为无法初始化Qt平台插件,重新安装该应用程序可能会解决此问题。

可用的平台插件为:eglfs,linuxfb,minimum,minimegl,offscreen,vnc,xcb。

解决方案

下载并安装libxcb-util1_0.4.0-1+b1_amd64.deb就可以正常使用了。

下载地址:http://ftp.br.debian.org/debian/pool/main/x/xcb-util/libxcb-util1_0.4.0-1+b1_amd64.deb

下载后使用sudo dpkg -i libxcb-util1_0.4.0-1+b1_amd64.deb命令安装,参考dpkg命令_Linux dpkg命令使用详解:Debian Linux系统上安装、创建与管理软件包。

注:如果是其它平台,请到http://ftp.br.debian.org/debian/pool/main/x/xcb-util/下载相应的软件包。

相关主题

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值