diff --git a/5.15.2/compile_mac.sh b/5.15.2/compile_mac.sh index bb4cf98..97e6c3b 100644 --- a/5.15.2/compile_mac.sh +++ b/5.15.2/compile_mac.sh @@ -1,6 +1,6 @@ #!/bin/bash -export PATH=$PATH:/usr/local/Qt-5.15.2/bin +export PATH=$PATH:$(pwd)/qtbase/bin cd qtbase diff --git a/5.15.2/compile_mac_arm.sh b/5.15.2/compile_mac_arm.sh index 1312a4d..60e1fcc 100644 --- a/5.15.2/compile_mac_arm.sh +++ b/5.15.2/compile_mac_arm.sh @@ -1,6 +1,6 @@ #!/bin/bash -export PATH=$PATH:/usr/local/Qt-5.15.2/bin +export PATH=$PATH:$(pwd)/qtbase/bin cd qtbase diff --git a/5.15.2/compile_mac_arm_cross.sh b/5.15.2/compile_mac_arm_cross.sh new file mode 100644 index 0000000..ace61d5 --- /dev/null +++ b/5.15.2/compile_mac_arm_cross.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +export PATH=$PATH:$(pwd)/qtbase/bin + +cd qtbase + +./configure -device-option QMAKE_APPLE_DEVICE_ARCHS=arm64 -opensource -confirm-license -nomake examples -nomake tests -no-openssl -securetransport -prefix /usr/local/Qt-5.15.2-arm + +make -j 8 +echo maki | sudo -S sudo make install + +cd ../qttools +qmake +make -j 8 +echo maki | sudo -S sudo make install + +cd ../qtmacextras +qmake +make -j 8 +echo maki | sudo -S sudo make install + +cd /usr/local +zip -r ~/Desktop/qt5.15.2_mac_arm.zip Qt-5.15.2-arm/* \ No newline at end of file