ESp Rainmaker HomeKit Error Compiling

maialbe2823
Posts: 27
Joined: Thu Feb 17, 2022 4:41 am

ESp Rainmaker HomeKit Error Compiling

Postby maialbe2823 » 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

rpiloverbd
Posts: 101
Joined: Tue Mar 22, 2022 5:23 am

Re: ESp Rainmaker HomeKit Error Compiling

Postby rpiloverbd » Mon Apr 18, 2022 12:02 pm

Hi, had there been any problem at the time of library installation? Is is installed correctly?

maialbe2823
Posts: 27
Joined: Thu Feb 17, 2022 4:41 am

Re: ESp Rainmaker HomeKit Error Compiling

Postby maialbe2823 » Mon Apr 18, 2022 12:35 pm

Hello, yes it is correctly installed. No errors were produced when installation was done.
No idea why is this happening. I have try differents methods but none seem to correct the issue.

espriot
Posts: 2
Joined: Sat Jul 10, 2021 10:46 am

Re: ESp Rainmaker HomeKit Error Compiling

Postby espriot » Mon Jul 18, 2022 5:24 am

Even I am facing the same issue.
I have made some changes to the Cmakelists.txt file to add the path and extra component directories of HomeKit SDK
CMakeLists.txt
(1.2 KiB) Downloaded 276 times

ESP_Piyush
Posts: 259
Joined: Wed Feb 20, 2019 7:02 am

Re: ESp Rainmaker HomeKit Error Compiling

Postby ESP_Piyush » Tue Jul 19, 2022 6:14 pm

Have you referred the homekit_switch example's README? The path of the esp-homekit-sdk needs to be exported as HOMEKIT_PATH for any HomeKit example to compile

asierdo
Posts: 11
Joined: Mon Sep 18, 2023 10:37 am

Re: ESp Rainmaker HomeKit Error Compiling

Postby asierdo » Fri Nov 10, 2023 4:37 pm

Hi,
I've got same issue trying to build "led_light" example in VSC:

-- Found Git: C:/Users/ASIER.DINUY/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
-- Component directory C:/Users/ASIER.DINUY/.espressif/esp-rainmaker/components/esp-insights does not contain a CMakeLists.txt file. No component will be added
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/ASIER.DINUY/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/ASIER.DINUY/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-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/ASIER.DINUY/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32c3
Solving dependencies requirements
........CMake Error at C:/Users/ASIER.DINUY/esp/esp-idf/tools/cmake/build.cmake:519 (message):
ERROR: Can't reliably evaluate relative path without context:
..\rmaker_common

Call Stack (most recent call first):
C:/Users/ASIER.DINUY/esp/esp-idf/tools/cmake/project.cmake:440 (idf_build_process)
CMakeLists.txt:16 (project)


-- Configuring incomplete, errors occurred!
See also "C:/Users/ASIER.DINUY/.espressif/esp-rainmaker/examples/led_light_2/build/CMakeFiles/CMakeOutput.log".

* The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -B c:\Users\ASIER.DINUY\.espressif\esp-rainmaker\examples\led_light_2\build -S c:\Users\ASIER.DINUY\.espressif\esp-rainmaker\examples\led_light_2" terminated with exit code: 1.

Any solution found ?

Thanks,
Asier.

Who is online

Users browsing this forum: No registered users and 23 guests