在RK3588Ubuntu中运行qtCreator报错

上一篇文章中的qt安装步骤执行完以后报错记录一下

  1. chown lindikeji:lindikeji /usr/lib/aarch64-linux-gnu/qt5/examples -R
    chown: invalid user: ‘lindikeji:lindikeji’
    运行这个 老提示没有用户组,我就切换至管理员账户运行
    chown lindikeji /usr/lib/aarch64-linux-gnu/qt5/examples -R
  2. 由于我ubuntu安装qt不会显示图标在桌面并且是通过xshell工具来打开qtcreator导致报以下错误
    qtcreator
    qt.qpa.xcb: could not connect to display localhost:10.0
    qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
    Aborted (core dumped)
    这个得去开发板里面的终端执行
  3. 在开发板执行qtcreator又报其它错误
    qtcreator
    arm_release_ver of this libmali is ‘g6p0-01eac0’, rk_so_ver is ‘5’.
    Cannot find EGLConfig, returning null config
    Cannot find EGLConfig, returning null config
    Cannot find EGLConfig, returning null config
    Unable to find an X11 visual which matches EGL config 0
    ConnectionServer error: “QLocalSocket: Remote closed” “/tmp/QtCreator-NPorfu/ClangBackEnd-4669”
    Segmentation fault (core dumped)
    看着这个问题是libmail版本影响
    运行apt install libmali 解决
    再次运行qtcreator 成功打开qt开发工具,但是在工具里面会报错,但是可以运行,这个问题暂时没解决

你可能感兴趣的:(qt5)