Page 1 of 1

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

Posted: Mon Aug 28, 2017 8:30 pm
by tbnobody
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

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

Posted: Sun Sep 10, 2017 8:36 pm
by kolban
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.

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

Posted: Sun Sep 10, 2017 10:40 pm
by WiFive