Files
asteria-qt/scripts/install-deps-windows.sh
T

40 lines
1.2 KiB
Bash

#!/usr/bin/env bash
# Install all dependencies for asteria-qt on Windows via MSYS2.
# Run this script from the MSYS2 MINGW64 shell:
# bash scripts/install-deps-windows.sh
set -euo pipefail
echo "Installing non-Qt dependencies via pacman..."
pacman -S --needed \
mingw-w64-x86_64-gcc \
mingw-w64-x86_64-zlib \
mingw-w64-x86_64-cmake \
mingw-w64-x86_64-ninja \
mingw-w64-x86_64-uchardet \
mingw-w64-x86_64-minizip \
mingw-w64-x86_64-quazip \
mingw-w64-x86_64-djvulibre \
mingw-w64-x86_64-libwpd \
python3 \
python-pip \
python-setuptools \
mingw-w64-x86_64-python-psutil
echo ""
echo "Installing Qt 6.10.3 via aqtinstall → /opt/qt ..."
python3 -m venv --system-site-packages /tmp/aqt-venv
/tmp/aqt-venv/bin/pip install --no-build-isolation aqtinstall
/tmp/aqt-venv/bin/aqt install-qt windows desktop 6.10.3 win64_mingw -m qtimageformats qtpdf qtwebview --outputdir /opt/qt
rm -rf /tmp/aqt-venv
echo ""
echo "All dependencies installed."
echo ""
echo "Qt 6.10.3 is at /opt/qt/6.10.3/mingw_64"
echo ""
echo "Build with:"
echo " cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=c:\msys64\opt\qt\6.10.3\mingw_64"
echo " cmake --build build --parallel"