Whats the prefered way of including arduino libraries when using ESP-IDF

tbnobody
Posts: 3
Joined: Mon Aug 14, 2017 12:18 am

Whats the prefered way of including arduino libraries when using ESP-IDF

Postby tbnobody » Mon Aug 28, 2017 8:30 pm

Hello,

I was wondering where to put arduino libraries when using the Arduino-ESP32 as an component in an ESP-IDF project?
If I just put the arduino library into the components folder it will not compile because there is no component.mk file.

Any help is appreciated.

Regards,
Thomas

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Whats the prefered way of including arduino libraries when using ESP-IDF

Postby kolban » Sun Sep 10, 2017 8:36 pm

My loose thinking is that the Arduino libraries are source code and header files that, if compiled and linked into your application, will then be available for use in your ESP32 app. When using the Arduino IDE, it provides its own specification for what a library looks like which is distinct from the specification used by the ESP-IDF build system. If you are using the ESP-IDF build system to build ESP-IDF applications and want to include Arduino libraries, then I think you will have to manually massage them to conform to the ESP-IDF build system. This would mean turning them into components.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32


Who is online

Users browsing this forum: Google [Bot] and 121 guests