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
ESp Rainmaker HomeKit Error Compiling
-
- Posts: 101
- Joined: Tue Mar 22, 2022 5:23 am
Re: ESp Rainmaker HomeKit Error Compiling
Hi, had there been any problem at the time of library installation? Is is installed correctly?
-
- Posts: 27
- Joined: Thu Feb 17, 2022 4:41 am
Re: ESp Rainmaker HomeKit Error Compiling
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.
No idea why is this happening. I have try differents methods but none seem to correct the issue.
Re: ESp Rainmaker HomeKit Error Compiling
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
I have made some changes to the Cmakelists.txt file to add the path and extra component directories of HomeKit SDK
-
- Posts: 309
- Joined: Wed Feb 20, 2019 7:02 am
Re: ESp Rainmaker HomeKit Error Compiling
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
Re: ESp Rainmaker HomeKit Error Compiling
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.
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 82 guests