mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3403] [Other] macOS: ./setup.sh on a fresh checkout no longer installs cmake and ninja, the Metal build fails #1378
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1378
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Flo5k5 on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3403
Area
[Other] (anything else, including setup and installation)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
On a fresh source checkout on a Mac,
./setup.shstops at step 4 ("the Strata engine (Metal)"): CMake cannot runninja. Step 3 still printsnumpy, jinja2, ..., cmake, ninja installed, but neither is in.venv.The cause looks like
a242537("setup: split build helpers (cmake, ninja) out of the runtime requirements"). It movedcmakeandninjatorequirements-build.txtand madesetup.py'scmake_build()install the missing ones before a compile, butmetal/setup_mac.py(whichsetup.pyhands a macOS run to) was not changed:requirements.txtonly, while its comment and message say cmake and ninja come with it (metal/setup_mac.py, lines 419-421 on9ae93f7);build_engine()andbuild_vision()calltool("cmake")/tool("ninja"), which fall back to the bare name when neither.venvnorPATHhas the tool.docs/MAC.md(step 3) and the module docstring still say "CMake and Ninja come from pip". An older.venvkeeps the helpers it already had, so this only shows on a new install..venv/bin/python -m pip install -r requirements-build.txt, then./setup.shagain, works around it.Smallest steps or command that reproduce it
On a Mac without
ninjaonPATH(herecmakecame from Homebrew):Reproduction status
Reproduced locally
Strata version
mainat9ae93f7(first seen on3d1fb48, 0.2.0-beta)Graphics card, memory and system
Apple M5 Pro, 64 GB unified memory, macOS 27.0.1
Model, size and settings
Not relevant: the failure is before the model download (Q2_0 was the recommended choice).
Logs
build-metal/build.log:A fix that installs the helpers before a compile, as
cmake_build()does, follows in a pull request.