Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error vscode building smart_outlet example for esp-homekit-sdk (esp32c3) #86

Open
qilongxian opened this issue Mar 24, 2022 · 1 comment

Comments

@qilongxian
Copy link

I compiled the example smart_outlet with vscode (esp32c3), but it fails.

The compilation error message is as follows:

Executing task: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .. <

-- Found Git: D:/software/esp32_tool/esp32_tool_V4-4/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- Component directory E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/components/homekit does not contain a CMakeLists.txt file. No component will be added
-- 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: D:/software/esp32_tool/esp32_tool_V4-4/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.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: D:/software/esp32_tool/esp32_tool_V4-4/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.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: D:/software/esp32_tool/esp32_tool_V4-4/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.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
CMake Warning at D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/tools/cmake/build.cmake:482 (message):
"idf_component.yml" file was found for components:

    E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/components/homekit/esp_hap_core

However, the component manager is not enabled.
Call Stack (most recent call first):
D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/tools/cmake/project.cmake:378 (idf_build_process)
CMakeLists.txt:20 (project)

-- Project sdkconfig file E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/examples/smart_outlet/sdkconfig
Loading defaults file E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/examples/smart_outlet/sdkconfig...
-- Found PythonInterp: D:/software/esp32_tool/esp32_tool_V4-4/python_env/idf4.4_py3.8_env/Scripts/python.exe (found version "3.8.7")
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- App "smart_outlet" version: 0b57ba6-dirty
-- Adding linker script E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/examples/smart_outlet/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_system/ld/esp32c3/sections.ld.in
-- Adding linker script D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_rom/esp32c3/ld/esp32c3.rom.ld
-- Adding linker script D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld
-- Adding linker script D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld
-- Adding linker script D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld
-- Adding linker script D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_rom/esp32c3/ld/esp32c3.rom.version.ld
-- Adding linker script D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_rom/esp32c3/ld/esp32c3.rom.eco3.ld
-- Adding linker script D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/soc/esp32c3/ld/esp32c3.peripherals.ld
4.0-???????? Windows ?????? BIOS ???????
???????? https://aka.ms/wsl2-install

ESP HomeKit SDK Project commit: 0b57ba6-dirty
-- Components: app_hap_setup_payload app_trace app_update app_wifi asio bootloader bootloader_support bt button cbor cmock coap console cxx driver efuse esp-tls esp32c3 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hap_apple_profiles esp_hap_core esp_hap_extras esp_hap_platform
esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos
hal heap hkdf-sha idf_test ieee802154 jsmn json json_generator json_parser libsodium log lwip main mbedtls mdns mqtt mu_srp newlib nghttp nvs_flash openssl openthread partition_table protobuf-c protocomm pthread qrcode riscv sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb unity usb vfs wear_levelling wifi_provisioning wpa_supplicant
-- Component paths: E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/examples/common/app_hap_setup_payload D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/app_trace D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/app_update E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/examples/common/app_wifi D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/asio
D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/bootloader D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/bootloader_support D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/bt E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/components/button D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/cbor D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/cmock D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/coap D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/console D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/cxx D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/driver D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/efuse D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp-tls D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp32c3 D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_adc_cal D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_common D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_eth D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_event D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_gdbstub E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/components/homekit/esp_hap_apple_profiles E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/components/homekit/esp_hap_core E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/components/homekit/esp_hap_extras E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/components/homekit/esp_hap_platform D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_hid D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_http_client D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_http_server D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_https_ota D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_https_server D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_hw_support D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_ipc D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_lcd D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_local_ctrl D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_netif D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_phy D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_pm D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_ringbuf D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_rom D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_serial_slave_link D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_system D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_timer D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_websocket_client D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esp_wifi D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/espcoredump D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/esptool_py D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/expat D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/fatfs D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/freemodbus D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/freertos D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/hal D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/heap E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/components/homekit/hkdf-sha D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/idf_test D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/ieee802154 D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/jsmn D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/json E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/components/homekit/json_generator E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/components/homekit/json_parser D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/libsodium D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/log D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/lwip E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/examples/smart_outlet/main D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/mbedtls D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/mdns D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/mqtt E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/components/homekit/mu_srp D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/newlib D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/nghttp D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/nvs_flash D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/openssl D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/openthread D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/partition_table D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/protobuf-c D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/protocomm D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/pthread E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/examples/common/qrcode D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/riscv D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/sdmmc D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/soc D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/spi_flash D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/spiffs D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/tcp_transport D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/tcpip_adapter D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/tinyusb D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/unity D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/usb D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/vfs D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/wear_levelling D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/wifi_provisioning D:/software/esp32_tool/esp32_tool_V4-4/frameworks/esp-idf-v4.4/components/wpa_supplicant
-- Configuring done
-- Generating done
CMake Error:
Running

'D:/software/esp32_tool/esp32_tool_V4-4/tools/ninja/1.10.2/ninja.exe' '-C' 'E:/project/ProjectDoc/esp32_homeKit/esp-homekit-sdk/examples/smart_outlet/build' '-t' 'recompact'

failed with:

ninja: error: build.ninja:21289: lexing error
DEFINES = -D MFI_VER=""4.0-???????? Windows ?????? BIOS ???????
^ near here
CMake Generate step failed. Build files cannot be regenerated correctly.
终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 ..”已终止,退出代码: 1。

I don't know whats going wrong...
Using Vscode and esp32c3
ESP_IDF version: 4.4

Thx for help

@qilongxian qilongxian changed the title Error vscode building smart_outlet example form esp-homekit-sdk (esp32c3) Error vscode building smart_outlet example for esp-homekit-sdk (esp32c3) Mar 24, 2022
@IsukaChiyogami
Copy link

I have the same problem, including no such a CMakeLists.txt file and no file in homekit/json_parse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants