我不知道为什么它无法启动。上次使用时,它运行正常。我尝试使用终端运行它,然后它显示:
Bus error (core dumped)
我尝试更新和升级,然后尝试安装这些库:
sudo apt-get --reinstall install libqt5dbus5 libqt5widgets5 libqt5network5 libqt5gui5 libqt5core5a libdouble-conversion libxcb-xinerama0
但这并不能解决问题。
我export QT_DEBUG_PLUGINS=1
在启动它之前使用过,最后一部分是
Got keys from plugin meta data ("webp")
QFactoryLoader::QFactoryLoader() checking directory path "/home/asmmo/Qt/Tools/QtCreator/bin/imageformats" ...
loaded library "/home/asmmo/Qt/Tools/QtCreator/lib/Qt/plugins/imageformats/libqgif.so"
loaded library "/home/asmmo/Qt/Tools/QtCreator/lib/Qt/plugins/imageformats/libqicns.so"
loaded library "/home/asmmo/Qt/Tools/QtCreator/lib/Qt/plugins/imageformats/libqico.so"
loaded library "/home/asmmo/Qt/Tools/QtCreator/lib/Qt/plugins/imageformats/libqjpeg.so"
loaded library "/home/asmmo/Qt/Tools/QtCreator/lib/Qt/plugins/imageformats/libqsvg.so"
loaded library "/home/asmmo/Qt/Tools/QtCreator/lib/Qt/plugins/imageformats/libqtga.so"
loaded library "/home/asmmo/Qt/Tools/QtCreator/lib/Qt/plugins/imageformats/libqtiff.so"
loaded library "/home/asmmo/Qt/Tools/QtCreator/lib/Qt/plugins/imageformats/libqwbmp.so"
Bus error (core dumped)
答案1
“总线错误”消息并不经常出现,但如果您尝试重新安装 Qt Creator,您可能需要将其干净地删除,然后重新安装。
您可以使用以下命令检查安装了哪些 QT 包:
dpkg -l | grep qt | awk '{print $2}' | xargs -n1 echo
并非所有内容都可以删除,也没有必要这么做,但专注于带有前缀的项目qt5
就足够了:
sudo apt remove --purge qt5*
sudo apt autoremove
现在您可以重新安装:
sudo apt install build-essential
sudo apt install qtcreator qt5-default
如果重新安装后收到“无法覆盖文件...”错误,则需要清除/home/{user}/.config/
目录中以字母开头的任何内容QT
。请务必更改{user}
为您的帐户名。
希望这能解决您的问题。