Skip to content

Compilation

  • 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:

Terminal window
python tools/build_scripts/build_mgr.py
python tools/build_scripts/build_mgr.py --list
python tools/build_scripts/build_mgr.py --build_variant pibot_pendant_v1_0/8mb_wifi_fluidnc

The full usage (interactive prompts, command-line options, output folders, flashing with flash_mgr.py) is in Installation → Build from source.

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 root CMakeLists.txt.
  • cmake/features.cmake turns them into ESP3D_*_FEATURE compile-time defines.
  • cmake/sanity_check.cmake rejects 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:

Terminal window
python tools/build_scripts/validate_build_scripts.py

To add a board or a variant, see Porting.