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
Whats the prefered way of including arduino libraries when using ESP-IDF
Re: Whats the prefered way of including arduino libraries when using ESP-IDF
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: No registered users and 37 guests