ESp Rainmaker HomeKit Error Compiling
Posted: Sat Apr 16, 2022 4:03 am
I am trying to compile a ESP Rainmaker example with the homekit integration but I get the following error:
C:\Users\...\.espressif\esp-rainmaker\examples\airquality_homekit>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 'c:\users\maial\.espressif\esp-rainmaker\examples\airquality_homekit\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 c:\users\...\.espressif\esp-rainmaker\examples\airquality_homekit\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 c:\users\maial\.espressif\esp-rainmaker\examples\airquality_homekit"...
-- Found Git: C:/Users/maial/.espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- Component directory C:/Users/maial/.espressif/frameworks/esp-idf-v4.4/components/esp32-DHT11-master does not contain a CMakeLists.txt file. No component will be added
-- Component directory C:/Users/maial/.espressif/esp-rainmaker/components/esp-insights does not contain a CMakeLists.txt file. No component will be added
-- Component directory C:/Users/maial/.espressif/esp-rainmaker/components/esp32-DHT11-master does not contain a CMakeLists.txt file. No component will be added
-- ccache will be used for faster recompilation
-- 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/maial/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/maial/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - 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: C:/Users/maial/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
CMake Error at C:/Users/maial/.espressif/frameworks/esp-idf-v4.4/tools/cmake/build.cmake:200 (message):
Failed to resolve component 'esp_hap_core'.
Call Stack (most recent call first):
C:/Users/maial/.espressif/frameworks/esp-idf-v4.4/tools/cmake/build.cmake:226 (__build_resolve_and_add_req)
C:/Users/maial/.espressif/frameworks/esp-idf-v4.4/tools/cmake/build.cmake:512 (__build_expand_requirements)
C:/Users/maial/.espressif/frameworks/esp-idf-v4.4/tools/cmake/project.cmake:378 (idf_build_process)
CMakeLists.txt:22 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/.../.espressif/esp-rainmaker/examples/airquality_homekit/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
Any ideas why?
I think it has to be with the HOMEKIT_PATH since the example says I have to export it but I don't know how if that's the case.
Thanks
C:\Users\...\.espressif\esp-rainmaker\examples\airquality_homekit>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 'c:\users\maial\.espressif\esp-rainmaker\examples\airquality_homekit\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 c:\users\...\.espressif\esp-rainmaker\examples\airquality_homekit\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 c:\users\maial\.espressif\esp-rainmaker\examples\airquality_homekit"...
-- Found Git: C:/Users/maial/.espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- Component directory C:/Users/maial/.espressif/frameworks/esp-idf-v4.4/components/esp32-DHT11-master does not contain a CMakeLists.txt file. No component will be added
-- Component directory C:/Users/maial/.espressif/esp-rainmaker/components/esp-insights does not contain a CMakeLists.txt file. No component will be added
-- Component directory C:/Users/maial/.espressif/esp-rainmaker/components/esp32-DHT11-master does not contain a CMakeLists.txt file. No component will be added
-- ccache will be used for faster recompilation
-- 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/maial/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/maial/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - 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: C:/Users/maial/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
CMake Error at C:/Users/maial/.espressif/frameworks/esp-idf-v4.4/tools/cmake/build.cmake:200 (message):
Failed to resolve component 'esp_hap_core'.
Call Stack (most recent call first):
C:/Users/maial/.espressif/frameworks/esp-idf-v4.4/tools/cmake/build.cmake:226 (__build_resolve_and_add_req)
C:/Users/maial/.espressif/frameworks/esp-idf-v4.4/tools/cmake/build.cmake:512 (__build_expand_requirements)
C:/Users/maial/.espressif/frameworks/esp-idf-v4.4/tools/cmake/project.cmake:378 (idf_build_process)
CMakeLists.txt:22 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/.../.espressif/esp-rainmaker/examples/airquality_homekit/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
Any ideas why?
I think it has to be with the HOMEKIT_PATH since the example says I have to export it but I don't know how if that's the case.
Thanks