Skip to content

How to specify library dependencies in platformio.ini #497

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

Closed
probonopd opened this issue Feb 6, 2016 · 3 comments
Closed

How to specify library dependencies in platformio.ini #497

probonopd opened this issue Feb 6, 2016 · 3 comments

Comments

@probonopd
Copy link

In my project, I need to specify as dependencies:

How would I specify those? The specific branches are important.
It would be nice if the documentation could be made a bit more verbose on how to do this.

@gepd
Copy link

gepd commented Feb 8, 2016

You have to include lib_dir

your platformio.ini should looks like:

[env:uno]
platform = atmelavr
framework = arduino
board = uno

[platformio]
lib_dir=path

the path should end in a folder where are included both libraries

is that what you are looking for?

@probonopd
Copy link
Author

Not sure. I was looking for something that would grab the libraries automatically for me from GitHub using git. Use case: I put a sketch online and I want my users to just download it, press run, and then ideally platformio would be smart enough to download its dependencies before attempting to compile.

@ivankravets
Copy link
Member

The first library is added http://platformio.org/#!/lib/show/1092/Adafruit-MQTT

As for the rest, see #461

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants