qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
时间: 2023-12-23 09:27:50 浏览: 380
Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“问题
5星 · 资源好评率100%
根据提供的引用内容,解决"qt.qpa.plugin: Could not find the Qt platform plugin 'xcb' in ''"和"qt.qpa.plugin: Could not find the Qt platform plugin 'wayland' in ''"的方法如下:
1. 解决"qt.qpa.plugin: Could not find the Qt platform plugin 'xcb' in ''"问题:
- 安装libxcb-xinerama库:
```shell
sudo apt-get install libxcb-xinerama0
```
2. 解决"qt.qpa.plugin: Could not find the Qt platform plugin 'wayland' in ''"问题:
- 安装qtwayland库:
```shell
sudo apt-get install qtwayland5
```
- 查看qtwayland库的位置:
```shell
dpkg -L qtwayland5
```
- 将qtwayland库的位置添加到环境变量中,使其全局生效。
阅读全文