cesanta / mongoose-os

Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
https://mongoose-os.com
Other
2.48k stars 430 forks source link

How to add a esp-idf lib / component ? #549

Open thbl opened 3 years ago

thbl commented 3 years ago

How can i add a esp-idf lib / component to a mongoose project ? eg. https://github.com/siara-cc/esp32-idf-sqlite3

i tried to use

includes:
  - libs

in mos.yml buth when i build i just get

/main.c:13:21: fatal error: sqlite3.h: No such file or directory
 #include "sqlite3.h"
thbl commented 3 years ago

Doing some more reading it seams like i need to use ESP_IDF_EXTRA_COMPONENTS in mos.yml When checking makelist of sqllite repo i see

set(COMPONENT_SRCS "sqlite3.c esp32.c")
set(COMPONENT_ADD_INCLUDEDIRS "include")
set(COMPONENT_REQUIRES)
register_component()

but mongoose os dont have this functions in mos.yml ? https://github.com/cesanta/mongoose-os/blob/master/platforms/esp32/Makefile.build

slimcdk commented 10 months ago

Did you figure it out?