Build Jaguar from source
mainTo build Jaguar and the underlying Toit implementation manually, follow these steps. This assumes you are in the root of the Jaguar repository.
- Set the Toit repository path:
export JAG_TOIT_REPO_PATH=$PWD/third_party/toit - Setup ESP-IDF environment:
Use the patched ESP-IDF provided within the Jaguar repository to ensure compatibility:
source $JAG_TOIT_REPO_PATH/third_party/esp-idf/export.sh - Compile:
Run
maketo build the SDK, download Toit dependencies, and build both the host executable and the device-side Toit program. - Usage:
After building, use the binary in the
build/directory.
export JAG_TOIT_REPO_PATH=$PWD/third_party/toit
source $JAG_TOIT_REPO_PATH/third_party/esp-idf/export.sh
make
# Using the built binary
build/jag flash
sleep 3
build/jag scan
build/jag run $JAG_TOIT_REPO_PATH/examples/hello.toit
build/jag monitor