RK3588-EDGE Ubuntu-Qt运行环境配置

一:概述

为了减少固件rootfs.img大小,在不进行Qt Creator安装的情况下运行Qt程序,就需要进行环境配置(lib及plugins)。

Ubuntu系统版本:Ubuntu 20.04.5 LTS

二:环境配置

  1. plugin配置

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted (core dumped)

在执行Qt程序时如果报以上错误就是缺少plugin配置,拷贝整个qt5文件即可解决该问题。

root@ubuntu:/usr/lib/aarch64-linux-gnu# ls qt5/ -al
total 111
drwxr-xr-x  5 root root   1024 Feb 22 16:46 .
drwxr-xr-x 98 root root 108544 Feb 24 10:20 ..
drwxr-xr-x  2 root root   1024 F

你可能感兴趣的:(Rockchip,Ubuntu,RK3588-EDGE,linux,ubuntu)