External Library from git


#1

Hi everyone,
for my project i use internal and external librarys, so i decided to use the platformio.ini to share my project with other member of my team.
10

Two are in the library manager of PlatformIO.
After i added them in this specific project, i wrote them in the “lib_deps”.

Now i want to use one of my library, it’s on git, so i decide to add it on “lib_deps_external”.
When i try to build the main.cpp, that give me an error about the git library.

I know that if i put the library on the lib folder it works on the main.cpp, but i would like to share it using the platformio.ini file.

What i wrong?


#2

What error exactly are you getting?

Also I can’t find documentation on lib_deps_external on http://docs.platformio.org/en/latest/projectconf/section_env_library.html. Have you tried simply adding the github link (without the #master) as a new line in lib_deps?


#3

This is the error, i edited the platformio.ini with your correction, but the error remain.


#4

Does this solve the problem?


#5

lib_extra_dirs = https://github.com/DaveCalaway/Adafruit-PN532.git

in this way? nop.


#6

lib_deps not lib_extra_dirs.


#7

oh god, it’s works!
Is not an external library the Git library? what the mess?


#8

Per the documentation lib_extra_dirs points to a folder on the file system where libraries are stored. lib_deps in turn has the ability to use git links.