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

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

Open
thbl opened this issue Aug 17, 2020 · 2 comments
Open

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

thbl opened this issue Aug 17, 2020 · 2 comments

Comments

@thbl
Copy link

thbl commented Aug 17, 2020

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
Copy link
Author

thbl commented Aug 17, 2020

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
Copy link

slimcdk commented Aug 18, 2023

Did you figure it out?

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