#!/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. set -euo pipefail apt-get update # ── Build tools ──────────────────────────────────────────────────────────────── apt-get install -y \ build-essential \ cmake \ ninja-build \ git # ── Qt 6 core development ────────────────────────────────────────────────────── # qt6-base-dev : Core, Gui, Widgets, Network, SQL, ... # qt6-declarative-* : QML / Qt Quick # qt6-tools-* : CMake find_package integration, lupdate, lrelease # qt6-shadertools : Required by Qt Quick renderer # qt6-svg-dev : SVG icon support apt-get install -y \ qt6-base-dev \ qt6-base-dev-tools \ qt6-declarative-dev \ qt6-declarative-dev-tools \ qt6-tools-dev \ qt6-tools-dev-tools \ qt6-shadertools-dev \ qt6-svg-dev # ── Qt 6 PDF (for PDF format support) ───────────────────────────────────────── apt-get install -y qt6-pdf-dev # ── Encoding detection ───────────────────────────────────────────────────────── apt-get install -y libuchardet-dev # ── ZIP extraction (EPUB, DOCX, ODT) ────────────────────────────────────────── # QuaZip is the Qt-idiomatic wrapper; minizip is the underlying C lib. apt-get install -y \ libquazip1-qt6-dev \ libminizip-dev # ── DjVu support ─────────────────────────────────────────────────────────────── apt-get install -y libdjvulibre-dev # ── Legacy .doc support (libwpd) ─────────────────────────────────────────────── apt-get install -y libwpd-dev echo "" echo "All dependencies installed. Qt6 version:" dpkg -l qt6-base-dev | awk '/^ii/{print $3}' echo "" echo "Verify CMake can find Qt6:" echo " cmake -B /tmp/qt6-test -DCMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu/cmake"