-
Notifications
You must be signed in to change notification settings - Fork 7.7k
How to build Arduino Library from Component #7627
-
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!
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 3 replies
-
Hello @beriberikix,
you can take a look on this talk which was presented by our Developer @SuGlider. It should answer some of your questions.
Beta Was this translation helpful? Give feedback.
All reactions
-
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?
Beta Was this translation helpful? Give feedback.
All reactions
-
The lib-builder already includes a script to copy everything to a working Arduino core folder. You can get inspiration from it :)
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
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.
Beta Was this translation helpful? Give feedback.