https://download.qt.io/archive/qt/
https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/
解压源码
environment-arm64:
sdkdir=/home/xxxx/armsdk/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/
printf "sdkdir=$sdkdir\n"
export PATH=$PATH:$sdkdir
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
source /home/xxxx/armsdk/environment-arm64
修改mkspecs/linux-aarch64-gnu-g++/qmake.conf
./configure -prefix /home/xxxx/arm64-qt-all -opensource -confirm-license -nomake examples -qt-xcb -skip qtdeclarative
make -j8
make INSTALL_PATH=" /home/xxxx/arm64-qt-all" install
arm无法找到字体:
复制qt不需要复制到/usr
可以放在/home/xxxx/arm64-qt-all
同时放要用的字体在/home/xxxx/arm64-qt-all/lib/fonts里面
export PATH=/home/xxxx/arm64-qt-all/bin:$PATH
nano /etc/ld.so.conf
/home/xxxx/arm64-qt-all/lib
ldconfig