此应用程序无法启动,因为它无法找到或加载 Qt 平台插件“wayland-egl”

C.K*_*C.K 5 wayland snap 18.04

突然 robo3t 无法启动,

错误信息

usama@usama:~$ robo3t-snap
This application failed to start because it could not find or load the Qt platform plugin "wayland-egl"
in "".

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb.

Reinstalling the application may fix this problem.
Aborted (core dumped)
Run Code Online (Sandbox Code Playgroud)

帮我解决这个问题。

小智 0

一个永恒之后...

您应该检查环境变量。

env VARIABLE_NAME=value通过设置环境变量来检查它是否有效的最简单方法是在要运行的命令或程序之前写入。

例如:

env QT_QPA_PLATFORM="xcb" robo3t-snap
Run Code Online (Sandbox Code Playgroud)