mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4038] [Other] Setup --build conflicts with the documented manual CMake build directory #1744
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#1744
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 @Jackmeson1 on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4038
Area
[Other] (anything else, including setup and installation)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
After configuring
build/with the manual CMake command fromdocs/INSTALL.md, substituting120fornativeas shown below,setup.py --buildfails when it reconfigures that directory with Ninja:docs/INSTALL.md:187-190("Only compile, without the installer") givescmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=native. The documented command does not specify-G. In my run, the resulting cache containedCMAKE_GENERATOR:INTERNAL=Unix Makefiles.docs/INSTALL.md:170-173says to run./setup.shagain after changing the code, and that "the build folder is an ordinary CMake build".setup.py:5602uses that samebuild/folder, andsetup.py:5482configures it with-G Ninja.In this run, setup's CUDA 13 source-build path could not reuse the
build/directory previously configured with Unix Makefiles: its configure command selected Ninja and failed before compilation.Expected: the documented manual-build and setup workflows either use compatible build directories/generators or document the transition between them. CMake already suggests removing
CMakeCache.txtandCMakeFilesor choosing another binary directory. A setup-specific explanation could identify the conflictingbuild/directory and explain how to continue. Automatically reusing the existing generator is one possible solution, not a requirement.Smallest steps or command that reproduce it
On Linux with the CUDA toolkit and CMake 3.31.10, the manual configure below produced
CMAKE_GENERATOR:INTERNAL=Unix Makefilesinbuild/CMakeCache.txt;env | grep -c CMAKE_GENERATORprinted0in that shell. I made the fresh checkout by cloning a local checkout at the same commit; from GitHub that is:I ran
setup.pydirectly.setup.shforwards its arguments tosetup.pyusing its selected Python environment. The recorded failure occurs in Step 4, before the model download and preparation steps.Reproduction status
Reproduced locally
Strata version
Commit
7dd5cf18e6(main)Graphics card, memory and system
NVIDIA RTX PRO 6000 Blackwell Server Edition 97,887 MiB · 176 GiB RAM · Ubuntu 24.04.4 LTS (Linux 6.6.122+, Google Colab), driver 580.82.07, CUDA 13.0.88, GCC 13.3.0, CMake 3.31.10, Python 3.13.16
Model, size and settings
Q2_0 selected,
--vision no --no-start; setup stops at the engine step.Logs
My run, 2026-10-25. The manual configure:
Then
setup.py:Not checked: Windows, the HIP folder (
build-hip), and whether a second setup run after deletingbuild/succeeds.@Niko1221 commented on GitHub (Oct 27, 2026):
Thanks, clear reproduction. Setup now notices a build folder made with another generator, says so in one line and configures it afresh. Fixed in 0.2.7.
Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7