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)
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 取消注释掉后重启进不去桌面了……