[Seek Help] 关于在deepin20.3上运行qt程序,无法加载'xcb'
Tofloor
poster avatar
zqh18282940148
deepin
2021-12-17 00:52
Author

截图_选择区域_20211216163358.png
之前一直用的win11+ubuntu20.04双系统,在上面用qtcreator写c++,后面就得ubuntu太丑了,就换成了deepin系统,基本操作和ubuntu差不多,但是更加美观也更加方便,但是同样的代码,运行就不行了,总是报有关'xcb'的错误,照着网上一堆教程,改了一下.bashrc,然后能够运行了,但是使用qDebug()时无法打印输出,反倒是用cout能够输出(我之前在ubuntu上的qt c++是能用qDebug()不能用cout的)依旧会报有关'xcb'的错误,然后就是PyQt5的也无法运行,同样是'xcb'。

求助各位大佬,请问我这是什么问题呢😂 2021-12-16_16-37.png

2021-12-16_16-44.png

Reply Favorite View the author
All Replies
gfdgd_xi
deepin
Ecological co-builder
2021-12-17 03:23
#1

好像要安装一个安装包,我等会找找

Reply View the author
q77190858
deepin
2021-12-17 16:33
#2

我也记得是要安装一个包,似乎是x11-xcb

Reply View the author
gfdgd_xi
deepin
Ecological co-builder
2021-12-18 19:21
#3

找到了,好像是这个:http://ftp.br.debian.org/debian/pool/main/x/xcb-util/libxcb-util1_0.4.0-1+b1_amd64.deb

Reply View the author