esp32 Matter project: Failed to resolve component 'chip'

XingpingGY
Posts: 1
Joined: Mon Feb 28, 2022 8:09 am

esp32 Matter project: Failed to resolve component 'chip'

Postby XingpingGY » Mon Feb 28, 2022 8:13 am

I followed the markdown file in example/all-cluster-app/esp32 step by step but failed.
And I cannot solve this problem.
  1. C:\Users\HIU7SGH\tools\connectedhomeip\examples\all-clusters-app\esp32>idf.py menuconfig
  2. Executing action: menuconfig
  3. Running cmake in directory c:\users\hiu7sgh\tools\connectedhomeip\examples\all-clusters-app\esp32\build
  4. Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 c:\users\hiu7sgh\tools\connectedhomeip\examples\all-clusters-app\esp32"...
  5. -- IDF_TARGET not set, using default target: esp32
  6. -- Found Git: C:/Users/HIU7SGH/tools/Espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
  7. -- Component directory C:/Users/HIU7SGH/tools/Espressif/frameworks/esp-idf-v4.4/examples/common_components/cmake does not contain a CMakeLists.txt file. No component will be added
  8. -- Component directory C:/Users/HIU7SGH/tools/Espressif/frameworks/esp-idf-v4.4/examples/common_components/credentials does not contain a CMakeLists.txt file. No component will be added -- Component directory C:/Users/HIU7SGH/tools/Espressif/frameworks/esp-idf-v4.4/examples/common_components/m5stack-tft does not contain a CMakeLists.txt file. No component will be added
  9. -- Component directory C:/Users/HIU7SGH/tools/Espressif/frameworks/esp-idf-v4.4/examples/common_components/pigweed does not contain a CMakeLists.txt file. No component will be added
  10. -- Component directory C:/Users/HIU7SGH/tools/Espressif/frameworks/esp-idf-v4.4/examples/common_components/tracing does not contain a CMakeLists.txt file. No component will be added
  11. -- ccache will be used for faster recompilation
  12. -- 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: C:/Users/HIU7SGH/tools/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
  13. -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Users/HIU7SGH/tools/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
  14. -- 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: C:/Users/HIU7SGH/tools/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
  15. -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32 CMake Error at C:/Users/HIU7SGH/tools/Espressif/frameworks/esp-idf-v4.4/tools/cmake/build.cmake:200 (message): Failed to resolve component 'chip'.
  16. Call Stack (most recent call first): C:/Users/HIU7SGH/tools/Espressif/frameworks/esp-idf-v4.4/tools/cmake/build.cmake:231 (__build_resolve_and_add_req) C:/Users/HIU7SGH/tools/Espressif/frameworks/esp-idf-v4.4/tools/cmake/build.cmake:512 (__build_expand_requirements) C:/Users/HIU7SGH/tools/Espressif/frameworks/esp-idf-v4.4/tools/cmake/project.cmake:378 (idf_build_process) CMakeLists.txt:34 (project)
  17.  
  18. -- Configuring incomplete, errors occurred! See also "C:/Users/HIU7SGH/tools/connectedhomeip/examples/all-clusters-app/esp32/build/CMakeFiles/CMakeOutput.log". cmake failed with exit code 1
Proposed Solution
<I have used git sbumodule --init but it is of no use>

Vinnie
Posts: 2
Joined: Mon Feb 21, 2022 11:59 pm

Re: esp32 Matter project: Failed to resolve component 'chip'

Postby Vinnie » Mon Feb 28, 2022 9:12 pm

Did you idf.py set-target yourchip ???

dbeaven
Posts: 1
Joined: Fri May 27, 2022 6:12 pm

Re: esp32 Matter project: Failed to resolve component 'chip'

Postby dbeaven » Fri May 27, 2022 8:49 pm

I have the same sort of issue and haven't been able to resolve it. I've tried to follow every set of instructions I can find to build the `all-clusters-app` with no success. I did find that pulling `master` for the `connectedhomeip` project gave better instructions in the `README.md` (https://github.com/project-chip/connect ... /README.md) and actually corrected some steps that I had found were missing. Still, the `set-target` seems to fail and the build also fails.

Is there a better series of instructions for building `all-clusters-app`? I started with this blog (https://blog.espressif.com/announcing-m ... 164316c0e3) and have gone down a few rabbit holes since then with no success.

I'm very interested in getting a Matter demo up and running w/ the ESP32.

marcdr
Posts: 1
Joined: Wed Jul 06, 2022 11:58 am

Re: esp32 Matter project: Failed to resolve component 'chip'

Postby marcdr » Wed Jul 06, 2022 12:03 pm

I am having the same problem. I did a fresh install and i tried the esp-matter sdk and the connectedhomeip sdk. Same result every time. I use the ESP-IDF V4.4.1. Does anyone know a solution?

rshankle
Posts: 2
Joined: Fri Mar 03, 2023 4:25 pm

Re: esp32 Matter project: Failed to resolve component 'chip'

Postby rshankle » Fri Mar 03, 2023 4:33 pm

Any update on this? I'm having the same issue and tried everything mentioned above.

thanks,
Bob

Marcosss
Posts: 4
Joined: Fri Nov 08, 2024 7:41 am

Re: esp32 Matter project: Failed to resolve component 'chip'

Postby Marcosss » Fri Nov 08, 2024 7:51 am

I am having the same issue, trying to integrate the esp-matter sdk into my existing esp32 project.
I checked out the whole esp-matter repo, including submodules and added it to my CMakeLists.txt:

set (EXTRA_COMPONENT_DIRS "external/esp-matter/components")

But all I get is a "Failed to resolve component 'chip'.:

-- Building ESP-IDF components for target esp32s3
Processing 8 dependencies:
[1/8] esp-now (70e9c77db16fc5a77fc5748aeb582b93b297506d)
[2/8] espressif/cmake_utilities (0.5.3)
[3/8] espressif/esp_diag_data_store (1.0.1)
[4/8] espressif/jsmn (1.1.0)
[5/8] espressif/json_generator (1.1.2)
[6/8] espressif/json_parser (1.0.3)
[7/8] espressif/libsodium (1.0.20~1)
[8/8] idf (5.3.0)
CMake Error at /home/arthur/esp/esp-idf/tools/cmake/build.cmake:268 (message):
Failed to resolve component 'chip'.
Call Stack (most recent call first):
/home/arthur/esp/esp-idf/tools/cmake/build.cmake:304 (__build_resolve_and_add_req)
/home/arthur/esp/esp-idf/tools/cmake/build.cmake:607 (__build_expand_requirements)
/home/arthur/esp/esp-idf/tools/cmake/project.cmake:710 (idf_build_process)
CMakeLists.txt:26 (project)

Any help or suggestion would be greatly appreciated!
Last edited by Marcosss on Tue Nov 12, 2024 2:31 pm, edited 1 time in total.

Marcosss
Posts: 4
Joined: Fri Nov 08, 2024 7:41 am

Re: esp32 Matter project: Failed to resolve component 'chip'

Postby Marcosss » Fri Nov 08, 2024 8:16 am

I am having the same issue.
Trying to integrate esp-matter into my existing esp32 project using esp-idf version 5.3. I cloned the complete esp-matter repo with submodules (also connectedhomeip) and integrated int into my main CMakeLists.txt:

set (EXTRA_COMPONENT_DIRS "external/esp-matter/components")

When trying to build I get:

-- Building ESP-IDF components for target esp32s3
Processing 8 dependencies:
[1/8] esp-now (70e9c77db16fc5a77fc5748aeb582b93b297506d)
[2/8] espressif/cmake_utilities (0.5.3)
[3/8] espressif/esp_diag_data_store (1.0.1)
[4/8] espressif/jsmn (1.1.0)
[5/8] espressif/json_generator (1.1.2)
[6/8] espressif/json_parser (1.0.3)
[7/8] espressif/libsodium (1.0.20~1)
[8/8] idf (5.3.0)
CMake Error at /home/arthur/esp/esp-idf/tools/cmake/build.cmake:268 (message):
Failed to resolve component 'chip'.
Call Stack (most recent call first):
/home/arthur/esp/esp-idf/tools/cmake/build.cmake:304 (__build_resolve_and_add_req)
/home/arthur/esp/esp-idf/tools/cmake/build.cmake:607 (__build_expand_requirements)
/home/arthur/esp/esp-idf/tools/cmake/project.cmake:710 (idf_build_process)
CMakeLists.txt:26 (project)

Marcosss
Posts: 4
Joined: Fri Nov 08, 2024 7:41 am

Re: esp32 Matter project: Failed to resolve component 'chip'

Postby Marcosss » Mon Nov 18, 2024 1:30 pm

I managed to solve the issue, I'll post my fix inc ase someone encounters the same problem.
The root cause was that my project did not contain a folder called "main" and the executable application itself was not called "main", so the fix is to compile the ppliaction with the option -DEXECUTABLE_COMPONENT_NAME:

idf.py -DEXECUTABLE_COMPONENT_NAME=<my_custom_app_name> build

Who is online

Users browsing this forum: No registered users and 230 guests