Upgrade to Qt 6.10.3, refactor AppState for LibraryModel integration, add ChunkMeasurer tests, and update CI/docker configurations.
This commit is contained in:
53 files changed
+2095
-880
No files matched your search
@@ -18,7 +18,7 @@ A cross-platform desktop book/document reader built with Qt6/C++. Reimplementati
|
||||
sudo scripts/install-deps-ubuntu.sh
|
||||
```
|
||||
|
||||
The script installs Qt 6.10.1 via `aqtinstall` to `/opt/qt/6.10.1/gcc_64`, plus the following apt packages:
|
||||
The script installs Qt 6.10.3 via `aqtinstall` to `/opt/qt/6.10.3/gcc_64`, plus the following apt packages:
|
||||
|
||||
| Group | Packages | Required? |
|
||||
|---|---|---|
|
||||
@@ -64,31 +64,24 @@ cd /c/path/to/asteria-qt
|
||||
bash scripts/install-deps-windows.sh
|
||||
```
|
||||
|
||||
Or install manually:
|
||||
The script installs Qt 6.10.3 via `aqtinstall` to `/opt/qt/6.10.3/mingw_64`, plus the following MSYS2 packages:
|
||||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
- `mingw-w64-x86_64-gcc` — GCC toolchain
|
||||
- `mingw-w64-x86_64-zlib` — Compression library
|
||||
- `mingw-w64-x86_64-cmake` — CMake build system
|
||||
- `mingw-w64-x86_64-ninja` — Ninja build tool
|
||||
- `mingw-w64-x86_64-uchardet` — Character encoding detection
|
||||
- `mingw-w64-x86_64-minizip` — ZIP archive support
|
||||
- `mingw-w64-x86_64-quazip` — Qt ZIP integration
|
||||
- `mingw-w64-x86_64-djvulibre` — DjVu document support
|
||||
- `mingw-w64-x86_64-libwpd` — WordPerfect document support
|
||||
|
||||
Verify the installation:
|
||||
|
||||
```bash
|
||||
qmake6 --version
|
||||
gcc --version
|
||||
cmake --version
|
||||
ls /opt/qt/6.10.3/mingw_64/bin # Should show Qt binaries like qmake6
|
||||
```
|
||||
|
||||
**Step 4 — Clone the repository**
|
||||
@@ -102,21 +95,21 @@ cd asteria-qt
|
||||
|
||||
All build commands run in the **MSYS2 MINGW64** shell on Windows, or a regular terminal on Linux.
|
||||
|
||||
On Linux, pass `-DCMAKE_PREFIX_PATH=/opt/qt/6.10.1/gcc_64` so CMake finds the aqt-installed Qt. On Windows, MSYS2 installs everything to a standard prefix that CMake finds automatically.
|
||||
On Linux, pass `-DCMAKE_PREFIX_PATH=/opt/qt/6.10.3/gcc_64` so CMake finds the aqt-installed Qt. On Windows, pass `-DCMAKE_PREFIX_PATH=c:\msys64\opt\qt\6.10.3\mingw_64` for the same reason.
|
||||
|
||||
### Command Line
|
||||
|
||||
```bash
|
||||
# Debug build (Linux)
|
||||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/opt/qt/6.10.1/gcc_64
|
||||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/opt/qt/6.10.3/gcc_64
|
||||
cmake --build build --parallel
|
||||
|
||||
# Debug build (Windows — no prefix needed)
|
||||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
|
||||
# Debug build (Windows)
|
||||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=c:\msys64\opt\qt\6.10.3\mingw_64
|
||||
cmake --build build --parallel
|
||||
|
||||
# Release build (Linux)
|
||||
cmake -B build-release -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/opt/qt/6.10.1/gcc_64
|
||||
cmake -B build-release -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/opt/qt/6.10.3/gcc_64
|
||||
cmake --build build-release --parallel
|
||||
|
||||
# Run tests
|
||||
@@ -136,11 +129,11 @@ ctest --test-dir build --output-on-failure
|
||||
|
||||
1. Open the project root folder (File → Open) — CLion detects `CMakeLists.txt` automatically
|
||||
2. Go to **Settings → Build, Execution, Deployment → CMake**
|
||||
3. In the **Debug** profile, add to **CMake options**:
|
||||
3. In the **Debug** and **Release** profiles, add to **CMake options**:
|
||||
```
|
||||
-DCMAKE_PREFIX_PATH=/opt/qt/6.10.1/gcc_64
|
||||
-DCMAKE_PREFIX_PATH=/opt/qt/6.10.3/gcc_64
|
||||
```
|
||||
This is where `install-deps-ubuntu.sh` installs Qt 6.10.1 via aqtinstall.
|
||||
This is where `install-deps-ubuntu.sh` installs Qt 6.10.3 via aqtinstall.
|
||||
4. CLion auto-detects the system GCC toolchain — no toolchain configuration needed
|
||||
5. To add a **Release** profile: click `+` to duplicate, change **Build type** to `Release`, same CMake options
|
||||
6. Build: `Ctrl+F9` | Run: `Shift+F10`
|
||||
@@ -154,7 +147,10 @@ ctest --test-dir build --output-on-failure
|
||||
- Leave **Debugger** set to **Bundled** — MSYS2's GDB can be newer than CLion supports
|
||||
2. **Configure CMake** — Settings → Build, Execution, Deployment → **CMake**:
|
||||
- In the Debug profile, set **Toolchain** to the MSYS2 MinGW toolchain created above
|
||||
- No `CMAKE_PREFIX_PATH` needed — MSYS2 installs Qt to a prefix CMake finds automatically
|
||||
3. In the **Debug** and **Release** profiles, add to **CMake options**:
|
||||
```
|
||||
-DCMAKE_PREFIX_PATH=c:\msys64\opt\qt\6.10.3\mingw_64
|
||||
```
|
||||
3. Build: `Ctrl+F9` | Run: `Shift+F10`
|
||||
|
||||
### VSCode
|
||||
@@ -169,5 +165,5 @@ ctest --test-dir build --output-on-failure
|
||||
|
||||
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
|
||||
3. On Windows: add a kit pointing to MSYS2's Qt (`C:\msys64\mingw64`) and MinGW compiler and `-DCMAKE_PREFIX_PATH=c:\msys64\opt\qt\6.10.3\mingw_64` to the CMake options
|
||||
4. Build: `Ctrl+B` / `⌘B` | Run: `Ctrl+R` / `⌘R`
|
||||
Reference in new issue
Block a user