详细步骤可参考
https://blog.csdn.net/s806903/article/details/134156599
亲测有效(感谢作者的分享,点赞),相关环境,编译环境,虚拟机下的ubuntu20.04 (x86_64),目标机银河麒麟V10
以下是试验步骤
1,
sudo apt update
sudo apt upgrade
2,
sudo apt update
sudo apt install qtbase5-dev -y
sudo apt install qtcreator -y
3,
sudo apt install build-essential libgl1-mesa-dev gperf libclang-dev -y
4,
#sudo apt install python -y
#sudo apt install python-dev -y
#sudo apt install python-pip -y
#注意,一些较新的系统,比如deepin v23中可能没有这几个包,需要修改为:
sudo apt install python2 -y
sudo apt install python2-dev -y
sudo apt install python3 -y
sudo apt install python3-dev -y
sudo apt install python3-pip -y
5,
sudo apt install g++-aarch64-linux-gnu -y
sudo apt install gcc-aarch64-linux-gnu -y
6,
tar -xvf qt-everywhere-src-5.15.13.tar.xz
7,
//cd /**/qt-everywhere-src-5.15.13**/
./configure -release -opensource -confirm-license -xplatform linux-aarch64-gnu-g++ -prefix /usr/local/qt5.15.13arm -nomake examples -no-opengl -skip qtwebengine -skip qtdoc -silent -qpa linuxfb
8,
make -j16 2>&1 | tee build.log
9,
make install
10,
编译安装成功,检测lib格式
cd /usr/local/qt5.15.13arm/lib
readelf -h libQt5Bluetooth.so
结果显示machine(架构)为 AArch64,表示编译成功
11,其他验证步骤参考本文开头的链接