解决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
转载请注明原文链接:https://www.cnblogs.com/itfanr/p/17880989.html
公众号:小弧光黑板报