AgelandClaude Sonnet 4.6 9cbfb4728b fix CI update-wiki: handle missing token and HTTP errors gracefully
- Fail early with clear message when GITLAB_TOKEN is unset
- Capture HTTP status code instead of relying on curl -f
- Handle 404 by creating the wiki page if it doesn't exist yet
- Print API response body on unexpected errors for easier debugging

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 20:44:08 +01:00
2026-03-16 14:01:16 +01:00
2026-03-16 19:25:15 +01:00
2026-03-16 15:34:15 +01:00
2026-03-16 15:34:15 +01:00
2026-03-15 17:07:18 +01:00
2026-03-16 13:30:28 +01:00
2026-03-16 11:29:43 +01:00

Asteria Qt

A cross-platform desktop book/document reader built with Qt6/C++. Reimplementation of asteria-bookreader (Electron/React) using a native Qt stack.

Target platforms: Windows and Linux; macOS planned.

Prerequisites

  • Qt 6.4+ (6.4 minimum for QtPdf; 6.5+ recommended)
  • CMake 3.16+
  • C++17 compiler — GCC 10+ or Clang 12+ on Linux; MinGW-w64 (GCC) via MSYS2 on Windows

Installing Dependencies

Linux (Ubuntu/Debian)

sudo scripts/install-deps-ubuntu.sh

The script installs the following package groups:

Group Packages Required?
Qt6 core qt6-base-dev, qt6-declarative-dev, qt6-tools-dev Required
Qt6 extras libqt6svg6-dev, qt6-shader-baker Required
Qt6 PDF libqt6pdf6-dev Optional (PDF support)
Encoding libuchardet-dev Required (TXT encoding detection)
Archive libquazip-qt6-dev, libminizip-dev Required (EPUB/ZIP)
DjVu libdjvulibre-dev Optional (DjVu support)
DOC libwpd-dev Optional (legacy .doc support)

After the script runs it prints a CMake verify step — run it to confirm Qt6 is found:

cmake --find-package -DNAME=Qt6 -DCOMPILER_ID=GNU -DLANGUAGE=CXX -DMODE=EXIST

Windows

All Windows dependencies — Qt 6, MinGW-w64, CMake, Ninja, and all third-party libraries — are installed through MSYS2, a Linux-like environment for Windows with a proper package manager (pacman). This ensures everything is compiled with the same GCC toolchain with no ABI mismatches.

Step 1 — Install Git for Windows

Download and install from git-scm.com/download/win. During setup:

  • Select "Git from the command line and also from 3rd-party software" (recommended PATH option)
  • Use the default options for everything else

Step 2 — Install MSYS2

Download and run the installer from msys2.org. Use the default install path (C:\msys64).

After installation, open the MSYS2 MINGW64 shell (search the Start menu for "MSYS2 MINGW64" — use this shell, not MSYS2 MSYS or UCRT64) and update the package database:

pacman -Syu

The shell will likely close itself partway through. Reopen it and run the update again to finish:

pacman -Syu

Step 3 — Install Qt 6 and all dependencies

In the MSYS2 MINGW64 shell, navigate to the project folder and run the install script (MSYS2 mounts Windows drives as /c/, /d/ etc.):

cd /c/path/to/asteria-qt
bash scripts/install-deps-windows.sh

Or install manually:

pacman -S --needed \
  mingw-w64-x86_64-gcc \
  mingw-w64-x86_64-zlib \
  mingw-w64-x86_64-qt6-base \
  mingw-w64-x86_64-qt6-declarative \
  mingw-w64-x86_64-qt6-tools \
  mingw-w64-x86_64-qt6-shadertools \
  mingw-w64-x86_64-qt6-svg \
  mingw-w64-x86_64-cmake \
  mingw-w64-x86_64-ninja \
  mingw-w64-x86_64-uchardet \
  mingw-w64-x86_64-quazip \
  mingw-w64-x86_64-djvulibre \
  mingw-w64-x86_64-libwpd

Verify the installation:

qmake6 --version
gcc --version
cmake --version

Step 4 — Clone the repository

git clone https://github.com/your-org/asteria-qt.git
cd asteria-qt

Building

All build commands run in the MSYS2 MINGW64 shell on Windows, or a regular terminal on Linux. No extra CMake flags are needed on Windows — MSYS2 installs everything to a standard prefix that CMake finds automatically.

Command Line

# Debug build
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
cmake --build build --parallel

# Release build
cmake -B build-release -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build-release --parallel

# Run tests
ctest --test-dir build --output-on-failure

Running

./build/asteria-qt        # Linux
./build/asteria-qt.exe    # Windows (run from MSYS2 MINGW64 shell)

CLion

  1. Open the project root folder (File → Open)
  2. CLion auto-detects CMakeLists.txt and configures
  3. Select a CMake profile (Debug/Release) in Settings → Build, Execution, Deployment → CMake
  4. Build: Ctrl+F9 / ⌘F9 | Run: Shift+F10 / ⌃R
  5. On Windows: set the toolchain to use MSYS2's MinGW (C:\msys64\mingw64\bin\gcc.exe) under Settings → Build, Execution, Deployment → Toolchains; leave GDB set to Bundled — MSYS2's GDB is newer than CLion supports

VSCode

  1. Install extensions: C/C++, CMake Tools
  2. Open the project root
  3. CMake Tools detects CMakeLists.txt automatically
  4. On Windows: when prompted to select a kit, choose the MSYS2 MinGW64 GCC kit (points to C:\msys64\mingw64\bin\gcc.exe)
  5. Build: Ctrl+Shift+B | Run: F5 (with launch.json) or CMake Tools' Run button

Qt Creator

  1. File → Open File or Project → select CMakeLists.txt
  2. Configure the kit under Edit → Preferences → Kits
  3. On Windows: add a kit pointing to MSYS2's Qt (C:\msys64\mingw64) and MinGW compiler
  4. Build: Ctrl+B / ⌘B | Run: Ctrl+R / ⌘R
S
Description
No description provided
Readme GPL-3.0
13 MiB
0 Stars 1 Watchers 0 Forks
2026-11-23 20:27:14 +01:00
Languages
C++ 74.2%
QML 8.4%
Shell 6.3%
Python 6.2%
CMake 3.2%
Other 1.6%