Muk911 / esphome

3 stars 0 forks source link

Cannot compile #1

Open dotevo opened 3 months ago

dotevo commented 3 months ago

Hello,

I wanted to try your project but I have problem with setup.

During compilation I have an error:

Compiling .pioenvs\ext-comp\src\main.o
In file included from src/esphome\components\esp32_rmt_led_strip\led_strip.h:12,
                 from src/esphome.h:9,
                 from src/main.cpp:3:
C:/Users/xxjordaa/.platformio/packages/framework-espidf/components/driver/deprecated/driver/rmt.h:18:2: warning: #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h" [-Wcpp]
   18 | #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h"
      |  ^~~~~~~
In file included from src/my_custom_component.h:2,
                 from src/main.cpp:35:
src/zb_device.h:12:10: fatal error: esp_zigbee_core.h: No such file or directory

*************************************************************************
* Looking for esp_zigbee_core.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:esp_zigbee_core.h"
* Web  > https://registry.platformio.org/search?q=header:esp_zigbee_core.h
*
*************************************************************************

   12 | #include "esp_zigbee_core.h" // временно
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
Compiling .pioenvs\ext-comp\src\zb_device.o
*** [.pioenvs\ext-comp\src\main.o] Error 1
In file included from src/zb_device.cpp:4:
src/zb_device.h:12:10: fatal error: esp_zigbee_core.h: No such file or directory

*************************************************************************
* Looking for esp_zigbee_core.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:esp_zigbee_core.h"
* Web  > https://registry.platformio.org/search?q=header:esp_zigbee_core.h
*
*************************************************************************

   12 | #include "esp_zigbee_core.h" // временно
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs\ext-comp\src\zb_device.o] Error 1

It is because of missing

  espressif/esp-zigbee-lib: "~1.3.0"
  espressif/esp-zboss-lib: "~1.3.0"

So my understanding is that I should replace/copy idf_component file to a build location, but I cannot find this directory inside.esphome I have only:

$ ls .esphome/
external_components/  storage/

Any ideas? Is it possible to add components in yaml level like:

esp32:
  framework:
    components:
       - ...
Novocaine85 commented 3 months ago

I have the same exact issue, I can't compile.

Novocaine85 commented 3 months ago

So I've managed to compile this.

You must move to idf_component.yml to \config\esphome\build\ext_comp\src

Then edit sdkconfig.ext-comp inside \config\esphome\build\ext_comp adding at the end of the file the following lines:

CONFIG_ZB_ENABLED=y
CONFIG_ZB_RADIO_NATIVE=y
CONFIG_ZB_ZED=y
ZB_ED_ROLE=y`

the instructions in the readme file are actually incorrect.

Muk911 commented 3 months ago

Hello,

I fixed the name of device in yaml-file.