Compilation
Section titled “Compilation”Prerequisites
Section titled “Prerequisites”- ESP-IDF 5.4.3, exported in the terminal you build from (on Windows: the ESP-IDF PowerShell, not Git Bash)
- Python 3.8+
All builds go through tools/build_scripts/build_mgr.py, interactive when run without arguments:
python tools/build_scripts/build_mgr.pypython tools/build_scripts/build_mgr.py --listpython tools/build_scripts/build_mgr.py --build_variant pibot_pendant_v1_0/8mb_wifi_fluidncThe full usage (interactive prompts, command-line options, output folders, flashing with flash_mgr.py) is in Installation → Build from source.
How a variant is defined
Section titled “How a variant is defined”A variant is one entry of VARIANTS in boards/<board>/build_scripts/variants.py: a list of CMake options turned on (board, flash size, target firmware, transports, services). Every other option is forced off.
- Feature options are declared with
OPTION()in the rootCMakeLists.txt. cmake/features.cmaketurns them intoESP3D_*_FEATUREcompile-time defines.cmake/sanity_check.cmakerejects invalid combinations (exactly one board and one target firmware, WiFi and Bluetooth mutually exclusive, socket client vs WebUI / SSDP / WebSocket, …).- Hardware capabilities (display, touch, SD, buzzer, encoder, …) are not options: each board forces them in its
boards/<board>/board_config.cmake.
After changing a variants.py or adding an option, check the consistency with:
python tools/build_scripts/validate_build_scripts.pyTo add a board or a variant, see Porting.