rk3588编译Qt搞了我大半年了,一直困惑特别鸣谢:qq1033878279的网友远程帮我编译演示了一遍。
一、vmware 安装基础工具
sudo apt install -y build-essential net-tools openssh-server vim openssl libssl-dev
二、vmware 下载 cmake和Qt源码
下载cmake :
wget https://cmake.org/files/v3.31/cmake-3.31.3.tar.gz
下载Qt5.15.15源码:
wget https://download.qt.io/official_releases/qt/5.15/5.15.15/single/qt-everywhere-opensource-src-5.15.15.tar.xz
下载交叉编译器:
git clone https://github.com/LubanCat/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.git
三、 vmware 安装 cmake
./configure --prefix=/opt/cmake
make
make install
四、查看 rk3588 arm架构及系统版本
root@ztl:~# uname -a
Linux ztl 5.10.198 #209 SMP Wed Nov 27 09:28:31 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
查看aarch64,64位的。查看系统:
root@ztl:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
得知rk3588的板子是ubuntu20.04,故vmware虚拟机也得安装ubuntu20.04