aquaticus / esphome-snmp

SNMP component for ESPHome
GNU General Public License v3.0
5 stars 10 forks source link

fatal error: SNMP_Agent.h: No such file or directory #2

Open akalagov opened 6 months ago

akalagov commented 6 months ago

Hi,

I have an issue with the SNMP component:

INFO ESPHome 2024.4.0
INFO Reading configuration /config/esphome/rf-smart-switch-1ch-0dd25c.yaml...
INFO Detected timezone 'Asia/Almaty'
INFO Generating C++ source...
INFO Compiling app...
Processing rf-smart-switch-1ch-0dd25c (board: generic-bk7231n-qfn32-tuya; framework: arduino; platform: libretiny @ 1.5.1)
--------------------------------------------------------------------------------
Warning! Non-Git installations are NOT SUPPORTED.
HARDWARE: BK7231N 120MHz, 256KB RAM, 1.03MB Flash
 - framework-arduino-api @ 2022.8.24+sha.237b10a 
 - framework-beken-bdk @ 0.0.0+v2021.06.07.sha.6491b8c 
 - library-flashdb @ 1.2.0+sha.d5c892f 
 - library-freertos @ 9.0.0+sha.95cc959 
 - library-freertos-port @ 2023.5.23+sha.a917d93 
 - library-lwip @ 2.1.3-bdk+sha.4ee4d34 
 - library-printf @ 6.1.0+sha.28a79bd 
 - library-uf2ota @ 5.0.0+sha.f955412 
PLATFORM VERSIONS:
 - libretiny @ 1.5.1
 - ltchiptool @ 4.11.1
CUSTOM OPTIONS:
 - fw_name = esphome
 - fw_version = 2024.4.0
Dependency Graph
|-- AsyncTCP-esphome @ 2.1.3
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- noise-c @ 0.1.4
|-- ArduinoJson @ 6.18.5
Compiling .pioenvs/rf-smart-switch-1ch-0dd25c/src/esphome/components/snmp/snmp_component.cpp.o
In file included from src/esphome/components/snmp/snmp_component.cpp:3:
src/esphome/components/snmp/snmp_component.h:8:10: fatal error: SNMP_Agent.h: No such file or directory

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

    8 | #include "SNMP_Agent.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
Compiling .pioenvs/rf-smart-switch-1ch-0dd25c/src/main.cpp.o
In file included from src/esphome.h:70,
                 from src/main.cpp:3:
src/esphome/components/snmp/snmp_component.h:8:10: fatal error: SNMP_Agent.h: No such file or directory

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

    8 | #include "SNMP_Agent.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs/rf-smart-switch-1ch-0dd25c/src/esphome/components/snmp/snmp_component.cpp.o] Error 1
*** [.pioenvs/rf-smart-switch-1ch-0dd25c/src/main.cpp.o] Error 1
========================== [FAILED] Took 4.57 seconds ==========================
pvossel commented 6 months ago

Same for me.

Compiling .pioenvs/computerkamer-lamp-tuya/src/esphome/components/snmp/snmp_component.cpp.o
In file included from src/esphome/components/snmp/snmp_component.cpp:3:
src/esphome/components/snmp/snmp_component.h:8:10: fatal error: SNMP_Agent.h: No such file or directory

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

    8 | #include "SNMP_Agent.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs/computerkamer-lamp-tuya/src/esphome/components/snmp/snmp_component.cpp.o] Error 1
========================== [FAILED] Took 3.63 seconds ==========================
aquaticus commented 6 months ago

Try to clean build

and compile esphome compile your-config.yaml

pvossel commented 6 months ago

Sadly it did not work. I used the commands:

esphome clean 2kickstart-bk7231t.yaml esphome compile 2kickstart-bk7231t.yaml

Same error.

In file included from src/esphome/components/snmp/snmp_component.cpp:3:
src/esphome/components/snmp/snmp_component.h:8:10: fatal error: SNMP_Agent.h: No such file or directory

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

    8 | #include "SNMP_Agent.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs/computerkamer-lamp-tuya/src/esphome/components/snmp/snmp_component.cpp.o] Error 1
======================================================================================================= [FAILED] Took 125.13 seconds =======================================================================================================
root@5c53de3b-esphome:/config/esphome#
akalagov commented 6 months ago

This recommendation didn't help me either

pvossel commented 6 months ago

Guess the issue for us both is that you are using a "bk7231n" chip and I am using a "bk7231t" chip. Wich is not supported by this plugin. Only ESP. Sadly I do not have the skills to port this over (or know if its even posible).