Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to build Arduino Library from Component #7627

Unanswered
beriberikix asked this question in Q&A
Discussion options

We have an ESP-IDF component that we would like to make available to Arduino users. During my research I found ESP32 Arduino Lib Builder which I believe is a tool intended for that purpose. However, I'm unclear how to use it even after reviewing the documentation.

Does anyone have experiencing building a custom Arduino library based off an esp-idf component and could share any pointers?

Thanks!

You must be logged in to vote

Replies: 1 comment 3 replies

Comment options

Hello @beriberikix,

you can take a look on this talk which was presented by our Developer @SuGlider. It should answer some of your questions.

You must be logged in to vote
3 replies
Comment options

Thanks @VojtechBartoska! It certainly helps. So if I understand it correctly, Arduino libraries that depend on an esp-idf component need to ship as a precompiled binary. So in order to create our own Library that we distribute outside of the arduino-esp32 implementation, we should build our binary with lib builder, copy it to our own library and somehow include it in the Arduino build system?

The details are missing but is that the general direction?

Comment options

The lib-builder already includes a script to copy everything to a working Arduino core folder. You can get inspiration from it :)

Comment options

I think you have to modify your sdkconfig at the root of the build system and then copy it into the components/arduino/tools/sdk/esp32 directory so it builds that library package with the config changes you desire.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /