Update build information
The build process is a little more complicated now. Both the xclbins and the executable needs to be built. We need to update the build information so it reflects how to build it on windows and linux from source to a working version. Suggestion: Move build information from readme.md to build.md and link to it instead. build.md should have a step by step guide on how to build the complete project from scratch.
I think the best thing to do is to automate the hell out of it, and keep it behind a flag.
A user following BUILD.md on Linux got stuck on a small thing that turned out to sit on top of a bigger one. #53 fixes both, but the bigger one is really this issue's question.
The small thing: BUILD.md's Linux section said docs/setup.sh installs the system dependencies. It doesn't - that script installs Xcode command line tools, Homebrew, Ruby and Jekyll, then serves the documentation site from a hardcoded $HOME/oflm/OpenFlowLM. macOS-only, nothing to do with building. The PR points readers at linux-getting-started.md instead, which has the real apt install list, and renames the script serve-docs.sh so the name stops inviting the same mistake.
The bigger thing: there are two presets called linux-default and they build different things.
CMakePresets.jsonat the top of the repo setsOFLM_BUILD_KERNELS=ON, so it builds the engine and the NPU kernels together, creating the kernel toolchain if it's missing. README.md documents this one, run from the repo root.src/CMakePresets.jsonhas no such option.cd src && cmake --preset linux-defaultgets you the engine only. BUILD.md documents this one.
So README says the build produces the kernels and BUILD.md says it can't, and each is right about its own preset. Someone who follows BUILD.md ends up with a binary that refuses to load a model - the exact failure BUILD.md opens by warning about.
linux-getting-started.md is a third starting point, and clean_build.sh on the staging branch names README.md and linux-getting-started.md as "the documented Linux procedure" without mentioning BUILD.md at all.
#53 describes both paths honestly rather than picking one, because picking one is your call. Two questions before anyone writes more into these files:
- Which is the build doc? My guess is README.md keeps the quick version and BUILD.md becomes the detailed one, with linux-getting-started.md covering only drivers and XRT - but it's a guess.
- Does
cd srcstay supported, or does everything move to the root presets?
Once that's settled I'm happy to do the rewrite. I'd rather not guess and collide with the staging work.