Page 1 of 1

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

Posted: Fri Jul 22, 2022 2:18 am
by MACHINK
-- 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环境。

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

Posted: Mon Jul 25, 2022 1:36 am
by ESP_Gargamel
用的哪个版本的 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。