小弧光的博客

公众号:小弧光黑板报

导航

解决QtCreator启动失败

.zshrc中加入:


export QT_DEBUG_PLUGINS=1

然后再启动,发现报错:


library: "/home/itfanr/Desktop/sdb/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" cannot load: Cannot load library /home/itfanr/Desktop/sdb/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: cannot open shared object file: No such file or directory)
qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/home/itfanr/Desktop/sdb/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/itfanr/Desktop/sdb/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: cannot open shared object file: No such file or directory)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

解决办法:

sudo apt-get install libxcb-cursor0

posted on 2023-12-07 09:31  小弧光  阅读(229)  评论(0编辑  收藏  举报