【应用开发】核心板3588运行QT异常,如何解决?

首先在Firefly开发板上烧写的是官方提供的统一固件
操作系统是ubuntu20.04
qt5-default、qtcreator安装都是正常的
在命令行下直接运行qtcreator时,运行不了,直接报错了
firefly@firefly:~$ qtcreator
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '5'.
ConnectionServer error: "QLocalSocket: Remote closed" "/tmp/QtCreator-PbOtcS/ClangBackEnd-46368"
Segmentation fault (core dumped)
但是用sudo时却能显示出qt的界面,但命令行窗口输出也同样出错了
firefly@firefly:~$ sudo qtcreator
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '5'.
error: XDG_RUNTIME_DIR not set in the environment.
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
尝试执行下面语句,发现还是解决不了问题
# wayland协议
sudo apt install qtwayland5
export QT_QPA_PLATFORM=wayland
有朋友知道这该如何解决吗?

虽然不知道具体是啥原因,但是使用 apt-get install qtwayland5-examples 却解决问题了,可能是自动下载了之前缺少的东西,然后才能正常的运行QT,奇奇怪怪。

firefly@firefly:~$ apt-cache search qtwayland
libqt5waylandclient5 - QtWayland client library
libqt5waylandclient5-dev - QtWayland client development files
libqt5waylandcompositor5 - QtWayland compositor library
libqt5waylandcompositor5-dev - QtWayland compositor development files
qml-module-qtwayland-compositor - Qt 5 Wayland Compositor QML module
qtwayland5 - QtWayland platform plugin
qtwayland5-dev-tools - Qt 5 Wayland developer tools
qtwayland5-doc - Qt 5 Wayland Compositor documentation
qtwayland5-doc-html - Qt 5 Wayland Compositor HTML documentation
qtwayland5-examples - Qt 5 Wayland examples

我启动RVIZ的时候也碰到了,把/etc/gdm/custom.conf的#waylandEnable=flase 取消注释掉后重启进不去桌面了……