Failed to resolve component 'openthread' when building matter example application
Posted: Fri Jun 10, 2022 7:34 pm
Hello,
I would like to build ESP32 matter application to my ESP32 device.
From what I've seen, Matter is not supported yet as part of the ESP-IDF and requires a separate project under the CHIP github.
First I made sure I have a working connectedhomeip environment by building it using the connectedhomeip tools.Then I followed the instructions to build the matter application for ESP32 here: https://github.com/project-chip/connect ... /README.md
Successfully executed all the steps until I try to run idf.py set-target esp32 (from connectedhomeip/examples/all-clusters-app/esp32)
I get an error message: Failed to resolve component 'openthread' see full log below.
I am not sure why openthread is even required, given that the ESP32 does not have the radio to support it. Could it be environment configuration issue?
Appreciate any help,
Thanks in advance
ohad@HomeStudio:~/Android/connectedhomeip/examples/all-clusters-app/esp32$ 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 '/home/ohad/Android/connectedhomeip/examples/all-clusters-app/esp32/build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory /home/ohad/Android/connectedhomeip/examples/all-clusters-app/esp32/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /home/ohad/Android/connectedhomeip/examples/all-clusters-app/esp32"...
-- Found Git: /usr/bin/git (found version "2.25.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/ohad/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/ohad/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/ohad/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Found Python3: /home/ohad/Android/connectedhomeip/.environment/pigweed-venv/bin/python3 (found version "3.8.10") found components: Interpreter
CMake Error at /home/ohad/tools/esp-idf/tools/cmake/build.cmake:189 (message):
Failed to resolve component 'openthread'.
Call Stack (most recent call first):
/home/ohad/tools/esp-idf/tools/cmake/build.cmake:220 (__build_resolve_and_add_req)
/home/ohad/tools/esp-idf/tools/cmake/build.cmake:435 (__build_expand_requirements)
/home/ohad/tools/esp-idf/tools/cmake/project.cmake:396 (idf_build_process)
CMakeLists.txt:34 (project)
-- Configuring incomplete, errors occurred!
See also "/home/ohad/Android/connectedhomeip/examples/all-clusters-app/esp32/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
I would like to build ESP32 matter application to my ESP32 device.
From what I've seen, Matter is not supported yet as part of the ESP-IDF and requires a separate project under the CHIP github.
First I made sure I have a working connectedhomeip environment by building it using the connectedhomeip tools.Then I followed the instructions to build the matter application for ESP32 here: https://github.com/project-chip/connect ... /README.md
Successfully executed all the steps until I try to run idf.py set-target esp32 (from connectedhomeip/examples/all-clusters-app/esp32)
I get an error message: Failed to resolve component 'openthread' see full log below.
I am not sure why openthread is even required, given that the ESP32 does not have the radio to support it. Could it be environment configuration issue?
Appreciate any help,
Thanks in advance
ohad@HomeStudio:~/Android/connectedhomeip/examples/all-clusters-app/esp32$ 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 '/home/ohad/Android/connectedhomeip/examples/all-clusters-app/esp32/build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory /home/ohad/Android/connectedhomeip/examples/all-clusters-app/esp32/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /home/ohad/Android/connectedhomeip/examples/all-clusters-app/esp32"...
-- Found Git: /usr/bin/git (found version "2.25.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/ohad/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/ohad/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/ohad/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Found Python3: /home/ohad/Android/connectedhomeip/.environment/pigweed-venv/bin/python3 (found version "3.8.10") found components: Interpreter
CMake Error at /home/ohad/tools/esp-idf/tools/cmake/build.cmake:189 (message):
Failed to resolve component 'openthread'.
Call Stack (most recent call first):
/home/ohad/tools/esp-idf/tools/cmake/build.cmake:220 (__build_resolve_and_add_req)
/home/ohad/tools/esp-idf/tools/cmake/build.cmake:435 (__build_expand_requirements)
/home/ohad/tools/esp-idf/tools/cmake/project.cmake:396 (idf_build_process)
CMakeLists.txt:34 (project)
-- Configuring incomplete, errors occurred!
See also "/home/ohad/Android/connectedhomeip/examples/all-clusters-app/esp32/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1