qt 安装后启动失败
问题描述:qt正常安装,启动时报错qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
解决过程:
a. 查阅qt论坛:https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/3
b. run your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see what might go wrong when the plugin is loaded.
export QT_DEBUG_PLUGINS=1
c. 发现是由于库缺失导致的,apt-file search
QT - Could not load the Qt platform plugin "xcb" in "" even though it was found.
最新推荐文章于 2024-06-13 18:58:37 发布