#!/usr/bin/env bash # Install all development dependencies for asteria-qt on Ubuntu/Debian. # Tested on Ubuntu 24.04. Run with sudo or as root. # Qt 6.10.x is installed via aqtinstall to /opt/qt — the Ubuntu apt repo only # ships Qt 6.4, which is too old (qt_policy QTP0004 requires Qt 6.8+). set -euo pipefail apt-get update apt-get install -y \ build-essential \ cmake \ ninja-build \ git \ libgl1-mesa-dev \ libxkbcommon-dev \ libuchardet-dev \ zlib1g-dev \ libminizip-dev \ libarchive-dev \ libdjvulibre-dev \ libwpd-dev \ python3-venv 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 /tmp/aqt-venv/bin/aqt install-qt linux desktop 6.10.3 linux_gcc_64 -m qtimageformats qtpdf qtwebview --outputdir /opt/qt /tmp/aqt-venv/bin/aqt install-src linux 6.10.3 --archives qtbase qtimageformats 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/gcc_64" echo "" echo "Build with:" echo " cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/opt/qt/6.10.3/gcc_64" echo " cmake --build build --parallel"