【问题标题】:qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was foundqt.qpa.plugin:无法在“”中加载 Qt 平台插件“xcb”,即使它已找到
【发布时间】:2020-01-12 00:30:53
【问题描述】:

我来了

 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

在 Debian 9 中全新安装 qt creator 之后。不幸的是,这里的解决方案告诉我要执行 ldd /usr/lib/qt/plugins/platforms/libqxcb.so/usr/lib/qt/ 甚至不存在。

【问题讨论】:

  • 执行export QT_DEBUG_PLUGINS=1并执行你的可执行文件:./your_executable,输出是什么?

标签: qt debian


【解决方案1】:

sudo apt-get install --reinstall libxcb-xinerama0

【讨论】:

  • 与其发布一行代码,请考虑添加更多解释,说明您为什么推荐这个以及它如何回答 OP 的问题。
【解决方案2】:

按照这两个步骤,它适用于wireshark

$ sudo -s
# sudo apt-get install libcap2-bin

然后重启more ...

【讨论】:

    猜你喜欢
    • 2021-09-03
    • 2022-08-11
    • 2020-05-05
    • 2021-07-20
    • 2022-06-23
    • 2022-07-25
    • 2016-01-08
    • 1970-01-01
    • 2019-10-09
    相关资源
    最近更新 更多