build qt from source
create a virtual machine which based on arm64 in qemu
dependency: UEFI -> https://releases.linaro.org/components/kernel/uefi-linaro/16.02/release/qemu64/
create a virtual disk
qemu-img create -f qcow2 virtual_disk.qcow2 70G
install system from iso files.
qemu-system-aarch64 -m 4096 -M virt -cpu cortex-a72 -smp 4 -bios QEMU_EFI.fd -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd -drive if=none,file=virtual_disk.qcow2,id=hd0 -device virtio-blk-device,drive=hd0 -drive if=none,file=/path/to/operater_system_image_arm64.iso,id=cdrom,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom
after installation, and using it by hostfwd
qemu-system-aarch64 -m 4096 -M virt -cpu cortex-a72 -smp 4 -bios QEMU_EFI.fd -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd -drive if=none,file=uos.qcow2,id=hd0 -device virtio-blk-device,drive=hd0 -net nic -net user,hostfwd=tcp::2222-:22
install dependency of qt
in Debian for example
sudo apt-get install build-essential make cmake libxkbcommon-x11-dev libgl1-mesa-dev libglu1-mesa-dev libfontconfig1-dev libxcb-xfixes0-dev libxcb-util-dev
download the qt source from qt.io
./configure -prefix ~/qtbin/build -confirm-license -opensource -debug -nomake examples -nomake tests -c++std 17 -bundled-xcb-xinput -skip qtquickcontrols -skip qtquickcontrols2 -skip qtsensors -skip qtdoc -no-compile-examples