Page 1 of 1

Performing build step for 'chip_gn' fails on fresh esp-idf and esp-matter installation

Posted: Tue Nov 12, 2024 5:03 pm
by tomasmcguinness
Hi,

I have had a previously working esp-matter environment on my MacOS, but after attempting to download everything again, I can't get any of the samples to compile.

I am opening the generic_switch example under esp-matter/examples. This previously compiled and flashed onto an esp32-h2 I have, but since deleting the folders and performing the installation again, I now get this error:

[962/1531] Performing configure step for 'chip_gn'
Done. Made 3650 targets from 284 files in 349ms
[963/1531] Performing build step for 'chip_gn'
FAILED: esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build esp-idf/chip/lib/libCHIP.a /Users/tomasmcguinness/esp/esp-matter/examples/generic_switch/build/esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build /Users/tomasmcguinness/esp/esp-matter/examples/generic_switch/build/esp-idf/chip/lib/libCHIP.a
cd "/Users/tomasmcguinness/esp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/components/chip;/Users/tomasmcguinness/esp/esp-matter/examples/generic_switch/build/esp-idf/chip" && ninja esp32
/bin/sh: line 0: cd: /Users/tomasmcguinness/esp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/components/chip;/Users/tomasmcguinness/esp/esp-matter/examples/generic_switch/build/esp-idf/chip: No such file or directory
[964/1531] Linking C static library esp-idf/openthread/libopenthread.a
ninja: build stopped: subcommand failed.