Add Mac support
This commit is contained in:
1 parent
ad0d7376b3
commit
2568f9089b
4 files changed
+108
-8
No files matched your search
Executable
+36
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
# Install all development dependencies for asteria-qt on macOS.
|
||||
# Requires Homebrew (https://brew.sh) and Xcode Command Line Tools.
|
||||
# Run as a normal user (sudo is used only where needed).
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
brew update
|
||||
brew install cmake ninja pkg-config uchardet minizip
|
||||
|
||||
echo ""
|
||||
echo "Installing Qt 6.10.3 via aqtinstall → /opt/qt ..."
|
||||
python3 -m venv /tmp/aqt-venv
|
||||
/tmp/aqt-venv/bin/pip install --quiet aqtinstall
|
||||
|
||||
# Qt for macOS ships as a universal binary (arm64 + x86_64); aqtinstall installs to "macos"
|
||||
QT_ARCH="clang_64"
|
||||
QT_DIR_NAME="macos"
|
||||
|
||||
sudo mkdir -p /opt/qt
|
||||
sudo chown "$USER" /opt/qt
|
||||
/tmp/aqt-venv/bin/aqt install-qt mac desktop 6.10.3 "$QT_ARCH" \
|
||||
-m qtimageformats qtpdf --outputdir /opt/qt
|
||||
rm -rf /tmp/aqt-venv
|
||||
|
||||
QT_DIR="/opt/qt/6.10.3/$QT_DIR_NAME"
|
||||
|
||||
echo ""
|
||||
echo "All dependencies installed."
|
||||
echo ""
|
||||
echo "Qt 6.10.3 is at $QT_DIR"
|
||||
echo ""
|
||||
echo "Build with:"
|
||||
echo " cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=$QT_DIR"
|
||||
echo " cmake --build build --parallel"
|
||||
echo " ctest --test-dir build --output-on-failure"
|
||||
Reference in new issue
Block a user