qt-build-tools/5.15.4/compile_mac_arm.sh

24 lines
504 B
Bash
Raw Normal View History

2021-05-27 04:15:29 +08:00
#!/bin/bash
2021-08-04 22:49:16 +08:00
alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')"
2021-05-27 04:15:29 +08:00
export PATH=$PATH:$(pwd)/qtbase/bin
cd qtbase
./configure $OPTIONS QMAKE_APPLE_DEVICE_ARCHS=arm64 -opensource -confirm-license -nomake examples -nomake tests -no-openssl -securetransport
2021-08-04 22:49:16 +08:00
makej
2021-05-27 04:15:29 +08:00
echo maki | sudo -S sudo make install
cd ../qttools
qmake
2021-08-04 22:49:16 +08:00
makej
2021-05-27 04:15:29 +08:00
echo maki | sudo -S sudo make install
cd ../qtmacextras
qmake
2021-08-04 22:49:16 +08:00
makej
2021-05-27 04:15:29 +08:00
echo maki | sudo -S sudo make install
cd /usr/local
zip -r ~/Desktop/qt5.15.4_mac_arm.zip Qt-5.15.4/*