esp-homekit-sdk的例程编译失败

MACHINK
Posts: 11
Joined: Fri Jul 22, 2022 2:10 am

esp-homekit-sdk的例程编译失败

Postby MACHINK » Fri Jul 22, 2022 2:18 am

-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
CMake Error at D:/Espressif/frameworks/esp-idf-v4.4.1/tools/cmake/build.cmake:200 (message):
Failed to resolve component 'esp_hap_core'.
Call Stack (most recent call first):
D:/Espressif/frameworks/esp-idf-v4.4.1/tools/cmake/build.cmake:226 (__build_resolve_and_add_req)
D:/Espressif/frameworks/esp-idf-v4.4.1/tools/cmake/build.cmake:512 (__build_expand_requirements)
D:/Espressif/frameworks/esp-idf-v4.4.1/tools/cmake/project.cmake:378 (idf_build_process)
CMakeLists.txt:33 (project)


-- Configuring incomplete, errors occurred!
See also "D:/Desktop/esp-homekit-sdk/examples/fan/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1

如上,编译esp-homekit-sdk内的example时,总是“ Failed to resolve component 'esp_hap_core'.”是什么原因?IDF版本4.4.1,windows10环境。

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: esp-homekit-sdk的例程编译失败

Postby ESP_Gargamel » Mon Jul 25, 2022 1:36 am

用的哪个版本的 esp-homekit-sdk?查看下 components/homekit/esp_hap_core/CMakeLists.txt 这个文件在不在。
一般类似

Code: Select all

Failed to resolve component 'esp_hap_core'.
这样的问题,是由于不能解析到 esp_hap_core 目录下的 CMakeLists.txt。

Who is online

Users browsing this forum: No registered users and 80 guests