[*]Mac M2
[*]VSC
[*]Esp-idf latest release
[*]esp-matter latest release
It is quite frankly ridiculous how shit the esp-idf development experience is.
but since their is no other way of trying to do what i want:
I didi a clean installation of the esp-idf extension in vscode. Afterwards i opened the command palette and entered Install ESP-Matter command. Which started the install but of course didn't work.
No problem so i follow the other guide (1 of 3 given from espress-if, none really complete...or working) and install the shallow clone of the esp-matter repo. Then i go to the esp-idf extension and set the path for the extension to the download path. So far so good. Next i enter the esp-examples command open the esp-matter light example and create my own project from it. Now starts the fun.
i execute the two export.sh scripts from esp-idf and esp-matter. Works...nice. I set the target first with the vsc function in the bottom left and hit build and get this:
Code: Select all
Running cmake in directory /Users/sam/Documents/wordclock_firmware2/light/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/Users/sam/.espressif/python_env/idf5.1_py3.9_env/bin/python -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 /Users/sam/Documents/wordclock_firmware2/light"...
-- Found Git: /usr/bin/git (found version "2.39.2 (Apple Git-143)")
CMake Error at /Users/sam/.espressif/esp-matter/device_hal/device/esp32_devkit_c/esp_matter_device.cmake:3 (message):
please set esp32 as the IDF_TARGET using 'idf.py set-target esp32'
Call Stack (most recent call first):
CMakeLists.txt:35 (include)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the /Users/sam/Documents/wordclock_firmware2/light/build/log/idf_py_stderr_output_13840 and /Users/sam/Documents/wordclock_firmware2/light/build/log/idf_py_stdout_output_13840
Code: Select all
-- Found Git: /usr/bin/git (found version "2.39.2 (Apple Git-143)")
-- Component directory /Users/sam/.espressif/esp-matter/examples/common/blemesh_platform does not contain a CMakeLists.txt file. No component will be added
-- Component directory /Users/sam/.espressif/esp-matter/examples/common/external_platform does not contain a CMakeLists.txt file. No component will be added
-- Component directory /Users/sam/.espressif/esp-matter/examples/common/relinker does not contain a CMakeLists.txt file. No component will be added
CMake Error at /Users/sam/esp/esp-idf/tools/cmake/project.cmake:349 (message):
Directory specified in EXTRA_COMPONENT_DIRS doesn't exist:
/Users/sam/.espressif/esp-matter/connectedhomeip/connectedhomeip/config/esp32/components
Call Stack (most recent call first):
/Users/sam/esp/esp-idf/tools/cmake/project.cmake:433 (__project_init)
CMakeLists.txt:44 (project)
-- Configuring incomplete, errors occurred!
* The terminal process "/bin/zsh '-c', 'cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -B /Users/sam/Documents/wordclock_firmware2/light/build -S /Users/sam/Documents/wordclock_firmware2/light'" terminated with exit code: 1.
So do a full-clean, close the vsc again, call the export scripts again and do idf.py build again:
Code: Select all
Running cmake in directory /Users/sam/Documents/wordclock_firmware2/light/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/Users/sam/.espressif/python_env/idf5.1_py3.9_env/bin/python -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 /Users/sam/Documents/wordclock_firmware2/light"...
-- Found Git: /usr/bin/git (found version "2.39.2 (Apple Git-143)")
CMake Error at /Users/sam/.espressif/esp-matter/device_hal/device/esp32_devkit_c/esp_matter_device.cmake:3 (message):
please set esp32 as the IDF_TARGET using 'idf.py set-target esp32'
Call Stack (most recent call first):
CMakeLists.txt:35 (include)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the /Users/sam/Documents/wordclock_firmware2/light/build/log/idf_py_stderr_output_14461 and /Users/sam/Documents/wordclock_firmware2/light/build/log/idf_py_stdout_output_14461
Code: Select all
(base) sam@Samuels-Air-2 light % idf.py set-target esp32
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory '/Users/sam/Documents/wordclock_firmware2/light/build' is empty. Nothing to clean.
Executing action: set-target
Set Target to: esp32, new sdkconfig will be created.
Target 'esp32' specified on command line is not consistent with target 'esp32c3' in the environment.
Code: Select all
Set Target to: esp32c3, new sdkconfig will be created.
Running cmake in directory /Users/sam/Documents/wordclock_firmware2/light/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/Users/sam/.espressif/python_env/idf5.1_py3.9_env/bin/python -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=0 /Users/sam/Documents/wordclock_firmware2/light"...
-- Found Git: /usr/bin/git (found version "2.39.2 (Apple Git-143)")
-- Component directory /Users/sam/.espressif/esp-matter/examples/common/blemesh_platform does not contain a CMakeLists.txt file. No component will be added
-- Component directory /Users/sam/.espressif/esp-matter/examples/common/external_platform does not contain a CMakeLists.txt file. No component will be added
-- Component directory /Users/sam/.espressif/esp-matter/examples/common/relinker does not contain a CMakeLists.txt file. No component will be added
CMake Error at /Users/sam/esp/esp-idf/tools/cmake/project.cmake:349 (message):
Directory specified in EXTRA_COMPONENT_DIRS doesn't exist:
/Users/sam/.espressif/esp-matter/connectedhomeip/connectedhomeip/config/esp32/components
Call Stack (most recent call first):
/Users/sam/esp/esp-idf/tools/cmake/project.cmake:433 (__project_init)
CMakeLists.txt:44 (project)
Anyway i guess my post has 3 goals:
1. Maybe someone has an idea what the issue is and can help me and others to work around this unfinished programming environment
2. Warn people to stay away or at least have them not be as frustrated as me for the past week
3. Be a hint towards the good people at Espressif - you do good boards but by god your software is pretty unusable.
Sry this turned into a bit of a rant and from this post onwards lets ignore the ranty part and focus on the fix. Maybe someone has an idea...