QT - Could not load the Qt platform plugin "xcb" in "" even though it was found.

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


版权声明:本文为sxcsxcsxcsxc原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。