首先在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
有朋友知道这该如何解决吗?