upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/linux.md
diff options
context:
space:
mode:
authorkirigayakazima <46666711+kirigayakazima@users.noreply.github.com>2026-12-01 19:13:49 +0800
committerkirigayakazima <46666711+kirigayakazima@users.noreply.github.com>2026-12-01 19:13:49 +0800
commitf613e6d8ea682e3c4e4c6d90d47f3c57692713b4 (patch)
treebc9c50715ee96ea57aacf85feb1b68270395e553 /docs/linux.md
parentbf41c1699f26e22f9edad2e3faebca8a3782fdfe (diff)
parent3ee508b469012606cf90f6efe7bec5ef65c446e7 (diff)
Merge remote-tracking branch 'upstream/main' into HEAD
# Conflicts: # scripts/merge_check.py
Diffstat (limited to 'docs/linux.md')
-rw-r--r--docs/linux.md25
1 files changed, 19 insertions, 6 deletions
diff --git a/docs/linux.md b/docs/linux.md
index c9ea03b84..d1cdb8d92 100644
--- a/docs/linux.md
+++ b/docs/linux.md
@@ -11,8 +11,8 @@ names; the build lists anything it can't find before it starts.
11 11
12| Piece | On Linux | How it is checked | 12| Piece | On Linux | How it is checked |
13|---|---|---| 13|---|---|---|
14| `make_game.py`: check, shaders, assets, pipelines | Native | CI (`stdlib-tests-linux`, `translator-tests`, `semantic-tests`) | 14| `make_game.py`: check, shaders, assets, pipelines | Native | CI (`linux-python-and-viewer`, `semantic-tests`) |
15| `Build.sh`, `Mods.sh` | Native (`/bin/sh`) | `tests/test_shell_launchers.py`, in the standard-library loop of `stdlib-tests-linux` | 15| `Build.sh`, `Mods.sh` | Native (`/bin/sh`) | `tests/test_shell_launchers.py`, in the standard-library loop of `linux-python-and-viewer` |
16| Shader translator, its tests and the GPU test tools (`vk_harness`, `vk_pipeline_check`, ...) | Native, GCC or Clang | CI (`linux-gpu-tools`: GCC, tests on llvmpipe); Clang builds them too, but no CI job uses it yet | 16| Shader translator, its tests and the GPU test tools (`vk_harness`, `vk_pipeline_check`, ...) | Native, GCC or Clang | CI (`linux-gpu-tools`: GCC, tests on llvmpipe); Clang builds them too, but no CI job uses it yet |
17| `rpf9dump` (asset export) | Native, .NET 8 or newer | CI builds it on Windows only (the `check` job) | 17| `rpf9dump` (asset export) | Native, .NET 8 or newer | CI builds it on Windows only (the `check` job) |
18| `gta6rt`, its shims and their tests | Windows program, under Wine or Proton | Cross-built with clang-cl and xwin; CI runs the Windows build under Wine on pushes to `main` | 18| `gta6rt`, its shims and their tests | Windows program, under Wine or Proton | Cross-built with clang-cl and xwin; CI runs the Windows build under Wine on pushes to `main` |
@@ -40,8 +40,8 @@ sudo apt install git python3 \
40Then, with your own copy of the game already readable on disk: 40Then, with your own copy of the game already readable on disk:
41 41
42```sh 42```sh
43git clone --recursive https://github.com/ubiquitarianism/leonida 43git clone --recursive https://github.com/ProjectLeonida/mandy
44cd leonida 44cd mandy
45./Build.sh --find # list the copies found: the home folder, Downloads, Documents, /mnt, /media/<user>, ... 45./Build.sh --find # list the copies found: the home folder, Downloads, Documents, /mnt, /media/<user>, ...
46./Build.sh --check # check your copy, build nothing 46./Build.sh --check # check your copy, build nothing
47./Build.sh # build into ~/Documents/Leonida 47./Build.sh # build into ~/Documents/Leonida
@@ -53,9 +53,12 @@ default stages leave `runtime` out (`check,shaders,assets,pipelines`).
53 53
54Notes: 54Notes:
55 55
56- **llvm-mc**: Debian and Ubuntu's `llvm-21` installs it only as `llvm-mc-21` and `/usr/lib/llvm-21/bin/llvm-mc`. 56- **llvm-mc**: the `shaders` stage needs LLVM 23 or newer, so install `llvm-23` where the distribution has it. Debian and Ubuntu's `llvm-21` installs `llvm-mc` only as `llvm-mc-21` and `/usr/lib/llvm-21/bin/llvm-mc`.
57 With `LLVM_MC` unset the tools use the plain `llvm-mc` when it is on `PATH` and otherwise the newest of those 57 With `LLVM_MC` unset the tools use the plain `llvm-mc` when it is on `PATH` and otherwise the newest of those
58 versioned names (`tools/mc_command.py`). Set `LLVM_MC` to choose another one. 58 versioned names (`tools/mc_command.py`). Set `LLVM_MC` to choose another one. The `shaders` stage needs LLVM 23+
59 for its pipeline library: 21.1.8's listings of 840 of its 2,684 compute programs carry 79,490 undecodable words and
60 the translator refuses them, while 23.1.5 leaves none in those 840 and the stage translates 2,683 of 2,684
61 ([design.md](design.md#disassembling-shaders)).
59- **File names are case-sensitive.** The build opens the package's files by their exact names 62- **File names are case-sensitive.** The build opens the package's files by their exact names
60 (`MicrosoftGame.Config`, `Catalog000.bin`, ...). A copy whose names changed case on the way is reported with the 63 (`MicrosoftGame.Config`, `Catalog000.bin`, ...). A copy whose names changed case on the way is reported with the
61 name it found and the one it needs; nothing is renamed for you. 64 name it found and the one it needs; nothing is renamed for you.
@@ -84,6 +87,16 @@ Runtime workflow. The stage writes `<out>/gta6rt.sh`, which starts `gta6rt.exe`
84[testing.md](testing.md#the-windows-runtime-on-linux-under-wine-or-proton) has the test runs under Wine and Proton 87[testing.md](testing.md#the-windows-runtime-on-linux-under-wine-or-proton) has the test runs under Wine and Proton
85and what fails there. 88and what fails there.
86 89
90On Apple Silicon, set `LEONIDA_CX_BOTTLE` to the name of an existing CrossOver bottle to use the same launcher:
91
92```sh
93LEONIDA_CX_BOTTLE=Leonida ./gta6rt.sh --dry-run
94```
95
96Run this from the packaged output directory. The launcher uses CrossOver in `/Applications` by default. Set `WINE`
97to the CrossOver `bin/wine` path if the app is installed elsewhere. It enables Rosetta's AVX advertisement by default
98for this mode and honours an explicit `ROSETTA_ADVERTISE_AVX` value.
99
87For XMA2 audio, `runtime/CMakeLists.txt` builds `runtime/xma_decoder` for `x86_64-pc-windows-msvc` when `cargo` is on 100For XMA2 audio, `runtime/CMakeLists.txt` builds `runtime/xma_decoder` for `x86_64-pc-windows-msvc` when `cargo` is on
88`PATH`. Distribution Rust packages typically omit the Windows MSVC standard library, which leaves XMA voices silent 101`PATH`. Distribution Rust packages typically omit the Windows MSVC standard library, which leaves XMA voices silent
89unless you add the `x86_64-pc-windows-msvc` Rust target or pass a prebuilt static library with 102unless you add the `x86_64-pc-windows-msvc` Rust target or pass a prebuilt static library with