-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Recommended method to add Arduino libraries using arduino-eps32 as component to esp-idf #1449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not sure what is the better way, but the easier way is just put your libs on |
Thanks, that works. I was hoping that there was an established method to include libraries, but keeping them separate from the arduino core. |
You can softlink in order to keep some logical separation. git won't complain quite as much. Eclipse may have some other way to include directories into your project. |
I tried several of the variables described in the documentation (chapter 4 "API Guides" -> "Using the Build System" if you look at the pdf).
This would keep things much more nicely separated .... Does anyone know how to do this ? Workarounds like |
you can add the libs to your components folder and then add one file in each lib so the build will pick them up. Here is an example that has the source files in src folder (adjust as necessary) https://github.com/me-no-dev/AsyncTCP/blob/master/component.mk |
Thanks.
|
Hi,
For me this works for standard Arduino libraries. I derived this from the component.mk of the arduino-folder. Please let us know if this works for you as well! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This stale issue has been automatically closed. Thank you for your contributions. |
апаук
Hi, this method not working now. How to use something similar with cmake ? |
hi everyone now I want to add some Arduino another library in my Arduino component library sorry for my English. |
Using arduino-esp32 as a component to esp-idf in Eclipse seems to work well. I installed it exactly as the README suggests and it compiled first time.
What is the recommended way to add Arduino libraries and ensure that make knows what to do with them?
Many thanks.
The text was updated successfully, but these errors were encountered: