docs: fix stale README notes, document building without Qt #812

Manually merged
github merged 2 commits from gh-pr/812/head into gh-pr/812/base 2026-11-26 09:33:24 +00:00
Owner

@⁠NevesHenry on GitHub · 2026-09-24 20:22 UTC · original
NevesHenry:docs/readme-build-requirements → main · +15 −3 · 1 files · 2 commits · merged 2026-09-25 21:50 UTC

Summary

Three small, independent README fixes:

  • point to the current issue template, Game Emulation Status Report (renamed from "Game Emulation Bug Report" in 027433f)
  • raise the Windows CMake requirement from 3.12 to 3.22.1, the actual minimum
  • document -DKYTY_BUILD_LAUNCHER=OFF for building kyty_emulator and the regression tests without Qt, as suggested in #193

Rationale

  • .github/ISSUE_TEMPLATE/kytyps5-game-emulation.yaml is the only issue template, and it is named "Game Emulation Status Report".
  • The root CMakeLists.txt accepts 3.16, but the bundled SPIRV-Tools (pinned at 7f2d9ee9, added unconditionally in 3rdparty/CMakeLists.txt) declares cmake_minimum_required(VERSION 3.22.1), so an older CMake fails at configure time. Nothing else in the Windows or Linux configure needs more; SDL3 asks for 3.24, but only in its Apple branch. Qt 6.12 (currently at RC) will need CMake 3.25 for the launcher build. CI pins Qt 6.10.3, which needs 3.22.
  • Qt is only looked up in src/launcher/CMakeLists.txt. The note says to build kyty_emulator as well as kyty_tests, because kyty_tests does not depend on kyty_emulator but the four emulator_* tests run it. With the launcher enabled, launcher pulls it in.

Validation

All in a clean Ubuntu 24.04 container (clang 18.1.3, no Qt packages installed):

Configure (main at 83628a4) Result
CMake 3.21.0, -DKYTY_BUILD_LAUNCHER=OFF fails: CMake Error at 3rdparty/SPIRV-Tools/CMakeLists.txt:15 (cmake_minimum_required): CMake 3.22.1 or higher is required. You are running version 3.21.0
CMake 3.22.0, -DKYTY_BUILD_LAUNCHER=OFF fails the same way (You are running version 3.22.0)
CMake 3.22.1, -DKYTY_BUILD_LAUNCHER=OFF configures; kyty_emulator builds
CMake 3.28.3, default options fails at src/launcher/CMakeLists.txt:2 (find_package) because Qt is missing, as expected
CMake 3.28.3, -DKYTY_BUILD_LAUNCHER=OFF configures; kyty_emulator, kyty_tests and save_data_memory_tests build

Following the new note in a fresh build directory on a20fb7f (CMake 3.28.3, -DKYTY_BUILD_LAUNCHER=OFF):

  • building only kyty_tests leaves the four emulator_* tests as Not Run
  • after also building kyty_emulator, the 19 tests that need no GPU pass: shader_cfg, the four emulator_* tests, page_manager, memory_tracker, virtual_memory_allocation, guest_red_zone_patcher and the other CPU-only tests

Tests that need a Vulkan device were not run. save_data_memory is not built by kyty_tests; #798 already addresses that.

Not tested on Windows or macOS.

Scope

README only, and the three edits are independent. I did not raise cmake_minimum_required in the root CMakeLists.txt; I can add that here if you want older CMake versions to get a clearer error.

AI assistance

An AI coding assistant (Claude Code) helped me find these mismatches, check them against the build files and submodules, run the container builds above, and draft the change and this description. I reviewed the diff and the build and test output. All communication on this PR comes from me.

🤖 Generated with Claude Code

**@⁠NevesHenry** on GitHub · 2026-09-24 20:22 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/812) `NevesHenry:docs/readme-build-requirements` → `main` · +15 −3 · 1 files · 2 commits · merged 2026-09-25 21:50 UTC ## Summary Three small, independent README fixes: - point to the current issue template, **Game Emulation Status Report** (renamed from "Game Emulation Bug Report" in 027433f) - raise the Windows CMake requirement from 3.12 to **3.22.1**, the actual minimum - document `-DKYTY_BUILD_LAUNCHER=OFF` for building `kyty_emulator` and the regression tests without Qt, as suggested in #193 ## Rationale - `.github/ISSUE_TEMPLATE/kytyps5-game-emulation.yaml` is the only issue template, and it is named "Game Emulation Status Report". - The root `CMakeLists.txt` accepts 3.16, but the bundled SPIRV-Tools (pinned at 7f2d9ee9, added unconditionally in `3rdparty/CMakeLists.txt`) declares `cmake_minimum_required(VERSION 3.22.1)`, so an older CMake fails at configure time. Nothing else in the Windows or Linux configure needs more; SDL3 asks for 3.24, but only in its Apple branch. Qt 6.12 (currently at RC) will need CMake 3.25 for the launcher build. CI pins Qt 6.10.3, which needs 3.22. - Qt is only looked up in `src/launcher/CMakeLists.txt`. The note says to build `kyty_emulator` as well as `kyty_tests`, because `kyty_tests` does not depend on `kyty_emulator` but the four `emulator_*` tests run it. With the launcher enabled, `launcher` pulls it in. ## Validation All in a clean Ubuntu 24.04 container (clang 18.1.3, no Qt packages installed): | Configure (main at 83628a4) | Result | | --- | --- | | CMake 3.21.0, `-DKYTY_BUILD_LAUNCHER=OFF` | fails: `CMake Error at 3rdparty/SPIRV-Tools/CMakeLists.txt:15 (cmake_minimum_required): CMake 3.22.1 or higher is required. You are running version 3.21.0` | | CMake 3.22.0, `-DKYTY_BUILD_LAUNCHER=OFF` | fails the same way (`You are running version 3.22.0`) | | CMake 3.22.1, `-DKYTY_BUILD_LAUNCHER=OFF` | configures; `kyty_emulator` builds | | CMake 3.28.3, default options | fails at `src/launcher/CMakeLists.txt:2 (find_package)` because Qt is missing, as expected | | CMake 3.28.3, `-DKYTY_BUILD_LAUNCHER=OFF` | configures; `kyty_emulator`, `kyty_tests` and `save_data_memory_tests` build | Following the new note in a fresh build directory on a20fb7f (CMake 3.28.3, `-DKYTY_BUILD_LAUNCHER=OFF`): - building only `kyty_tests` leaves the four `emulator_*` tests as `Not Run` - after also building `kyty_emulator`, the 19 tests that need no GPU pass: `shader_cfg`, the four `emulator_*` tests, `page_manager`, `memory_tracker`, `virtual_memory_allocation`, `guest_red_zone_patcher` and the other CPU-only tests Tests that need a Vulkan device were not run. `save_data_memory` is not built by `kyty_tests`; #798 already addresses that. Not tested on Windows or macOS. ## Scope README only, and the three edits are independent. I did not raise `cmake_minimum_required` in the root `CMakeLists.txt`; I can add that here if you want older CMake versions to get a clearer error. ## AI assistance An AI coding assistant (Claude Code) helped me find these mismatches, check them against the build files and submodules, run the container builds above, and draft the change and this description. I reviewed the diff and the build and test output. All communication on this PR comes from me. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- Use the current issue template name, Game Emulation Status Report
  (renamed in 027433f).
- Raise the documented Windows CMake minimum from 3.12 to 3.22.1, which
  the bundled SPIRV-Tools requires.
- Note that -DKYTY_BUILD_LAUNCHER=OFF builds kyty_emulator and the
  regression tests without Qt (#193).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:33:23 +00:00
github manually merged commit b1dca1bd8b into gh-pr/812/base 2026-11-26 09:33:24 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-24 20:28 UTC · original

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

📝 Walkthrough

Walkthrough

The README directs bug reports to the Game Emulation Status Report template. It raises the minimum CMake version for Windows builds to 3.22.1. Linux instructions clarify that Qt is needed only for the launcher and document building kyty_emulator with KYTY_BUILD_LAUNCHER=OFF, plus optionally building kyty_tests.

Suggested reviewers: nmzik

Change: Other

Merge Risk: 🔵 Low · up to 31ef1

The documented Linux no-Qt build can still require Qt and fail during configuration. The issue is limited to the instructions and has a straightforward correction.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the README documentation fixes, including stale notes and building without Qt.
Description check ✅ Passed The description is directly related to the README changes and provides clear rationale, validation results, and scope.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-09-24 20:28 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/812#issuecomment-5821725033) <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/812"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=2" alt="Review in Change Stack →" width="220" height="32"></a> Navigate logical layers of code changes, visualize relationships, and explore their blast radius. <!-- review_stack_entry_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough The README directs bug reports to the Game Emulation Status Report template. It raises the minimum CMake version for Windows builds to 3.22.1. Linux instructions clarify that Qt is needed only for the launcher and document building `kyty_emulator` with `KYTY_BUILD_LAUNCHER=OFF`, plus optionally building `kyty_tests`. **Suggested reviewers:** `nmzik` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"31ef12d49e2d783d248fc2eee061f6854a78e21e" --> **Change:** Other <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** _🔵 Low_ · up to `31ef1` <!-- final_review_risk_coverage:{"sourceCommitId":"31ef12d49e2d783d248fc2eee061f6854a78e21e","coveredCommitId":"31ef12d49e2d783d248fc2eee061f6854a78e21e","kind":"reviewed"} --> The documented Linux no-Qt build can still require Qt and fail during configuration. The issue is limited to the instructions and has a straightforward correction. <!-- final_review_risk_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 5</summary> <details> <summary>✅ Passed checks (5 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ✅ Passed | The title clearly summarizes the README documentation fixes, including stale notes and building without Qt. | | Description check | ✅ Passed | The description is directly related to the README changes and provides clear rationale, validation results, and scope. | | Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0… | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> --- <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-24 20:28 UTC · original · edited 2026-09-25 21:49 UTC
On README.md line 187 (outdated):

@@ -181,6 +181,10 @@ sudo apt-get install --no-install-recommends \
 Qt 6 (Concurrent, Network, Widgets) is also required — either the distribution packages
 (`qt6-base-dev`) or an official Qt installation.
 
+Qt is only needed for the launcher. To build without it, configure with
+`-DKYTY_BUILD_LAUNCHER=OFF` and build `kyty_emulator` (plus `kyty_tests` for the regression
+tests) instead of `launcher`.
+

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

git diff --unified=6 a20fb7f9f894f199fd678301356af1bbe030885e 31ef12d49e2d783d248fc2eee061f6854a78e21e -- README.md
sed -n '175,200p' README.md
rg -n -C 4 'KYTY_BUILD_LAUNCHER|add_subdirectory.*launcher|find_package\(Qt|kyty_emulator|kyty_tests' CMakeLists.txt src

Repository: KytyPS5/KytyPS5

Length of output: 18121


🏁 Script executed:

printf '%s\n' '--- README ---'
sed -n '168,202p' README.md
printf '%s\n' '--- root CMake option and target flow ---'
sed -n '1,35p' CMakeLists.txt
sed -n '185,215p' CMakeLists.txt
sed -n '690,712p' CMakeLists.txt
printf '%s\n' '--- launcher CMake ---'
sed -n '1,12p' src/launcher/CMakeLists.txt
printf '%s\n' '--- all Qt package calls ---'
rg -n -C 2 'find_package\(Qt|Qt6_DIR|KYTY_BUILD_LAUNCHER' --glob 'CMakeLists.txt' --glob '*.cmake' --glob 'README.md' .

Repository: KytyPS5/KytyPS5

Length of output: 9163


Make the Linux no-Qt commands use KYTY_BUILD_LAUNCHER=OFF.

The new text documents a no-Qt build, but the following command does not set KYTY_BUILD_LAUNCHER=OFF and builds launcher. The option defaults to ON, so CMake enters src/launcher, where find_package(Qt6 ... REQUIRED) can stop configuration on a machine without Qt. Keep the existing command for the Qt launcher and add a separate no-Qt command.

Suggested fix
-Qt 6 (Concurrent, Network, Widgets) is also required — either the distribution packages
+Qt 6 (Concurrent, Network, Widgets) is required to build the launcher — either the distribution packages
 (`qt6-base-dev`) or an official Qt installation.
 
 Qt is only needed for the launcher. To build without it, configure with
 `-DKYTY_BUILD_LAUNCHER=OFF` and build `kyty_emulator` (plus `kyty_tests` for the regression
 tests) instead of `launcher`.
 
 ```bash
 git submodule update --init --recursive
 
 cmake -S . -B _Build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release \
   -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
+  -DKYTY_BUILD_LAUNCHER=OFF
+
+cmake --build _Build/linux --target kyty_emulator --parallel
+```
+
+To build the Qt launcher, use:
+
+```bash
+git submodule update --init --recursive
+
+cmake -S . -B _Build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release \
+  -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
   -DCMAKE_PREFIX_PATH="$Qt6_DIR"
 
 cmake --build _Build/linux --target launcher --parallel

</details>

   
<repository_evidence>
<fact source="README.md:182-195">The README documents `-DKYTY_BUILD_LAUNCHER=OFF` and `kyty_emulator`, but the adjacent configure command omits that option and the build command targets `launcher`.</fact>
<fact source="CMakeLists.txt:192">`KYTY_BUILD_LAUNCHER` is an option whose default value is `ON`.</fact>
<fact source="CMakeLists.txt:704-706">The root CMake file adds `src/launcher` when `KYTY_BUILD_LAUNCHER` is enabled.</fact>
<fact source="src/launcher/CMakeLists.txt:2">The launcher subdirectory calls `find_package(Qt6 COMPONENTS Concurrent Network Widgets REQUIRED)`.</fact>
<inference source="README.md:191-195; CMakeLists.txt:192,705-706; src/launcher/CMakeLists.txt:2">Following the shown command without manually adding the prose-only option keeps the launcher enabled, so configuration can require Qt before the documented build target runs. Supplying the option directly bypasses `src/launcher`; the defect is the README command, not the CMake conditional.</inference>
</repository_evidence>
</verification_result>

✅ Addressed in commit b1dca1b

**@⁠coderabbitai[bot]** on GitHub · 2026-09-24 20:28 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/812#discussion_r4098158681) · edited 2026-09-25 21:49 UTC On `README.md` line 187 (outdated): ```diff @@ -181,6 +181,10 @@ sudo apt-get install --no-install-recommends \ Qt 6 (Concurrent, Network, Widgets) is also required — either the distribution packages (`qt6-base-dev`) or an official Qt installation. +Qt is only needed for the launcher. To build without it, configure with +`-DKYTY_BUILD_LAUNCHER=OFF` and build `kyty_emulator` (plus `kyty_tests` for the regression +tests) instead of `launcher`. + ``` _🎯 Functional Correctness_ | _🟡 Minor_ | _⚡ Quick win_ <details> <summary>🔎 Supported by static analysis</summary> 🏁 Script executed: ```bash git diff --unified=6 a20fb7f9f894f199fd678301356af1bbe030885e 31ef12d49e2d783d248fc2eee061f6854a78e21e -- README.md sed -n '175,200p' README.md rg -n -C 4 'KYTY_BUILD_LAUNCHER|add_subdirectory.*launcher|find_package\(Qt|kyty_emulator|kyty_tests' CMakeLists.txt src ``` Repository: KytyPS5/KytyPS5 Length of output: 18121 --- 🏁 Script executed: ```bash printf '%s\n' '--- README ---' sed -n '168,202p' README.md printf '%s\n' '--- root CMake option and target flow ---' sed -n '1,35p' CMakeLists.txt sed -n '185,215p' CMakeLists.txt sed -n '690,712p' CMakeLists.txt printf '%s\n' '--- launcher CMake ---' sed -n '1,12p' src/launcher/CMakeLists.txt printf '%s\n' '--- all Qt package calls ---' rg -n -C 2 'find_package\(Qt|Qt6_DIR|KYTY_BUILD_LAUNCHER' --glob 'CMakeLists.txt' --glob '*.cmake' --glob 'README.md' . ``` Repository: KytyPS5/KytyPS5 Length of output: 9163 --- </details> **Make the Linux no-Qt commands use `KYTY_BUILD_LAUNCHER=OFF`.** The new text documents a no-Qt build, but the following command does not set `KYTY_BUILD_LAUNCHER=OFF` and builds `launcher`. The option defaults to `ON`, so CMake enters `src/launcher`, where `find_package(Qt6 ... REQUIRED)` can stop configuration on a machine without Qt. Keep the existing command for the Qt launcher and add a separate no-Qt command. <details> <summary>Suggested fix</summary> ```diff -Qt 6 (Concurrent, Network, Widgets) is also required — either the distribution packages +Qt 6 (Concurrent, Network, Widgets) is required to build the launcher — either the distribution packages (`qt6-base-dev`) or an official Qt installation. Qt is only needed for the launcher. To build without it, configure with `-DKYTY_BUILD_LAUNCHER=OFF` and build `kyty_emulator` (plus `kyty_tests` for the regression tests) instead of `launcher`. ```bash git submodule update --init --recursive cmake -S . -B _Build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \ + -DKYTY_BUILD_LAUNCHER=OFF + +cmake --build _Build/linux --target kyty_emulator --parallel +``` + +To build the Qt launcher, use: + +```bash +git submodule update --init --recursive + +cmake -S . -B _Build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \ -DCMAKE_PREFIX_PATH="$Qt6_DIR" cmake --build _Build/linux --target launcher --parallel ``` ``` </details> <repository_evidence> <fact source="README.md:182-195">The README documents `-DKYTY_BUILD_LAUNCHER=OFF` and `kyty_emulator`, but the adjacent configure command omits that option and the build command targets `launcher`.</fact> <fact source="CMakeLists.txt:192">`KYTY_BUILD_LAUNCHER` is an option whose default value is `ON`.</fact> <fact source="CMakeLists.txt:704-706">The root CMake file adds `src/launcher` when `KYTY_BUILD_LAUNCHER` is enabled.</fact> <fact source="src/launcher/CMakeLists.txt:2">The launcher subdirectory calls `find_package(Qt6 COMPONENTS Concurrent Network Widgets REQUIRED)`.</fact> <inference source="README.md:191-195; CMakeLists.txt:192,705-706; src/launcher/CMakeLists.txt:2">Following the shown command without manually adding the prose-only option keeps the launcher enabled, so configuration can require Qt before the documented build target runs. Supplying the option directly bypasses `src/launcher`; the defect is the README command, not the CMake conditional.</inference> </repository_evidence> </verification_result> ``` </details> <!-- fingerprinting:phantom:medusa:serval --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:8e500a94a4f85bf226414853 --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commit b1dca1b
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-24 20:28 UTC · original · reviewed

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: e1be7701-2ec0-400e-ba7f-c135861960ce

📥 Commits

Reviewing files that changed from the base of the PR and between a20fb7f9f8 and 31ef12d49e.

📒 Files selected for processing (1)
  • README.md

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-09-24 20:28 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/812#pullrequestreview-5309852305) · **reviewed** **Actionable comments posted: 1** --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml **Review profile**: CHILL **Plan**: Advanced **Run ID**: `e1be7701-2ec0-400e-ba7f-c135861960ce` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between a20fb7f9f894f199fd678301356af1bbe030885e and 31ef12d49e2d783d248fc2eee061f6854a78e21e. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `README.md` </details> **Included review availability:** Your plan provides up to 10 included reviews per hour; 9 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.