43 lines
1.3 KiB
Bash
43 lines
1.3 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-libarchive \
|
|
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.12.0 via aqtinstall → /opt/qt ..."
|
|
python3 -m venv --system-site-packages /tmp/aqt-venv
|
|
/tmp/aqt-venv/bin/python3 -m pip install --upgrade pip
|
|
/tmp/aqt-venv/bin/python3 -m pip install setuptools pyppmd
|
|
/tmp/aqt-venv/bin/pip install aqtinstall
|
|
/tmp/aqt-venv/bin/aqt install-qt windows desktop 6.12.0 win64_mingw -m qtimageformats qtpdf qtwebview --outputdir /opt/qt
|
|
rm -rf /tmp/aqt-venv
|
|
|
|
echo ""
|
|
echo "All dependencies installed."
|
|
echo ""
|
|
echo "Qt 6.12.0 is at /opt/qt/6.12.0/mingw_64"
|
|
echo ""
|
|
echo "Build with:"
|
|
echo " cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=c:\msys64\opt\qt\6.12.0\mingw_64"
|
|
echo " cmake --build build --parallel"
|