Linux下qt桌面程序闪退,qt无法正常使用
系統是arch+kde+sddm,裝完系統后就安裝好了qt,并且新建了一個項目運行了一下一切正常。但是,晚上回來準備用其他時,發現桌面上的qt creator圖標不能啟動了,然后順著路徑直接運行Qt5.12.2/Tools/QtCreator/bin/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.
[1]? ? 12918 abort (core dumped)? ./qtcreator
然后發現通過目錄下的qtcreator.sh可以成功啟動qt creator但是運行新建項目再次報錯
/home/gcw/Qt5.12.2/5.12.2/gcc_64/bin/uic: relocation error: /home/gcw/Qt5.12.2/5.12.2/gcc_64/bin/uic: symbol _ZdlPvm version Qt_5 not defined in file libQt5Core.so.5 with link time reference
make: *** [Makefile:827: ui_mainwindow.h] Error 127
12:19:10: 進程"/usr/bin/make"退出,退出代碼 2 。
Error while building/deploying project untitled2 (kit: Desktop Qt 5.12.2 GCC 64bit)
When executing step "Make"
研究了一會后,發現不創建ui文件可以正常編譯運行。而且我最開始創建的帶ui文件的項目可以正常運行,但是在修改ui文件后,編譯出錯。
有大佬知道這是什么問題嗎?哭了
總結
以上是生活随笔為你收集整理的Linux下qt桌面程序闪退,qt无法正常使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 医院刷信用卡的坏处
- 下一篇: 微粒贷欠款5万多 无力偿还怎么解决