Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
57 lines
2.5 KiB
Markdown
57 lines
2.5 KiB
Markdown
# Build guide
|
|
|
|
## Toolchain status (recorded at scaffold / plan todo 1)
|
|
|
|
| Tool | Status on the build host | Notes |
|
|
| --- | --- | --- |
|
|
| `cmake` | **Installed via `pip install --user --break-system-packages cmake`** (v4.4.5) | System pip is PEP-668 externally-managed and `cmake` was not preinstalled; the `--break-system-packages` flag targets the per-user site only. `cmake` lands in `~/.local/bin` — ensure that is on `PATH`. |
|
|
| `g++` | Installed (system) | Native Linux build + test. |
|
|
| `python3` | 3.14.4 (system) | `venv`/`ensurepip` unavailable, so the dev venv is created with `virtualenv` (also `pip install --user --break-system-packages virtualenv`). |
|
|
| Python dev venv | `.venv/` (created with `virtualenv`, `pytest` installed) | gitignored. |
|
|
| `x86_64-w64-mingw32-g++` | **NOT installed; cannot be added without sudo** | Windows cross target is skipped here (see below). |
|
|
|
|
## Linux build + test (authoritative for the OS-agnostic core)
|
|
|
|
```sh
|
|
export PATH="$HOME/.local/bin:$PATH" # if cmake was pip-installed to the user site
|
|
cmake -S . -B build/linux
|
|
cmake --build build/linux
|
|
ctest --test-dir build/linux --output-on-failure
|
|
```
|
|
|
|
GoogleTest is fetched via CMake `FetchContent` at configure time (needs network once; it
|
|
is then cached under `build/linux/_deps`).
|
|
|
|
## Python tracker tests
|
|
|
|
```sh
|
|
.venv/bin/pytest -q
|
|
```
|
|
|
|
The tracker's runtime deps (opencv-python, mediapipe, numpy) are **declared** in
|
|
`tracker/pyproject.toml` but intentionally not installed at scaffold time — they arrive
|
|
with the tracker implementation (plan todo 5).
|
|
|
|
## Windows builds
|
|
|
|
Two Windows build paths are planned:
|
|
|
|
1. **MSVC (authoritative).** Built on the user's Windows box; this is the ABI-authoritative
|
|
build for the `Kinect10.dll` shim and the virtual USB driver. The shipping architecture
|
|
(**x86 vs x64 — DEA is likely x86/32-bit**) is confirmed from spike 4's
|
|
`dumpbin /headers gamekdm.dll` bitness before todos 12/14 build the real artifacts.
|
|
|
|
2. **MinGW-w64 cross (fast local smoke only).** A toolchain file exists at
|
|
`cmake/mingw-w64.cmake` scaffolding **both** `x86_64` and `i686` targets
|
|
(`-DNUI_WIN_ARCH=x86_64|i686`). **This build host has no MinGW-w64 toolchain and it
|
|
cannot be installed without sudo, so the Windows cross target is skipped for now.** When
|
|
a toolchain is available:
|
|
|
|
```sh
|
|
cmake -S . -B build/win --toolchain cmake/mingw-w64.cmake
|
|
cmake --build build/win
|
|
```
|
|
|
|
MinGW C++ ABI quirks around COM/SEH mean MinGW is only ever a smoke signal; MSVC remains
|
|
authoritative for shim/driver ABI acceptance.
|