Cappuccino-jay
2022-05-17 10:52
采纳率: 0%
浏览 46

【应用开发】核心板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
有朋友知道这该如何解决吗?
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题