Skip to content

Fix Linux/Arch build instructions in BUILDING.md - #299

Open
Erica4fr wants to merge 1 commit into
HarbourMasters:mainfrom
Erica4fr:docs/fix-linux-arch-build
Open

Erica4fr wants to merge 1 commit into
HarbourMasters:mainfrom
Erica4fr:docs/fix-linux-arch-build

Conversation

@Erica4fr

Copy link
Copy Markdown

Updates the Linux section of docs/BUILDING.md based on building main on Arch Linux.

  • sdl2 is no longer an Arch package; sdl2-compat provides it.
  • Removed sdl2_net and boost: networking is forced off in CMakeLists.txt (set(USE_NETWORKING OFF)), Boost isn't used, and the build succeeds without either.
  • The executable is ./build-cmake/Starship; the doc pointed at ./build-cmake/mm/2s2h.elf.
  • Removed the --config Release hint, which has no effect with the single-config Ninja generator.

This doesn't touch the macOS section, so it shouldn't conflict with #284.

Tested: Arch Linux (GCC 16.2.1, CMake 4.4.3), Release build of main (3322643). Configure, ExtractAssets, GeneratePortO2R and the full build all succeed, and the game runs.

Not tested: Arch's tinyxml2 package. I used a locally built tinyxml2 10.0.0, because Torch fetches 10.0.0 while libultraship links the system library, and Arch ships 11.0.0.

- The Arch package list referenced `sdl2`, which Arch no longer ships;
  use `sdl2-compat`. Drop `sdl2_net` (networking is disabled in
  CMakeLists.txt) and `boost`, which the build does not use.
- The Linux build section pointed at `./build-cmake/mm/2s2h.elf`;
  the executable is `./build-cmake/Starship`.
- Remove the `--config Release` hint from the Ninja build; the build
  type is set at configure time.
@Erica4fr

Copy link
Copy Markdown
Author

Gentle ping on this one, @sonicdcer. Nothing has changed on my side, and I rechecked it against main today:

  • main is still at 3322643f, the commit I tested against, and docs/BUILDING.md hasn't been touched since Update BUILDING.md #219 (July 2025), so this still applies cleanly.
  • The claims still hold on current main: set(USE_NETWORKING OFF) is at CMakeLists.txt:99, and the executable target is the project name, so the binary is ./build-cmake/Starship, not ./build-cmake/mm/2s2h.elf.
  • The overlapping half of this change (sdl2 → sdl2-compat, dropping sdl2_net and boost, the executable path, the --config Release hint) was merged into Ghostship today as Fix Linux/Arch build instructions in building.md Ghostship#272, in case that's a useful reference.

It still doesn't touch the macOS section, so no conflict with #284. Happy to rebase or split it up if you'd rather have it smaller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant