Hello everyone. In the previous version of PlatformIO, was an option at library menu that calls “install” which allows to install our external .zip libraries. It was great, because it made so so easy import libraries
I think the removal of that button is deliberate to push users to use the correct library management, that is, per-project managements via lib_deps instead of global libraries, which bring a bunch of problems with them (@ivankravets correct me if I’m wrong). So I strongly recommend that you use the intended PlatformIO library management system, which is already so easy by searching for the library you want and adding it via the “Add to Project” button.
Installing global libraries is still possible (but unrecommended) via the commandline. Open a PlatformIO CLI and execute the command
pio lib -g install path_to_zip_file
example:
pio lib -g install "C:\Users\Max\Downloads\Adafruit-GFX-Library-master.zip"
Ok, thats fine… There are any ways to implemets my external libraries “C:/…” by command line BUT as local and no like global?
My problem isn’t with local or global (I think that is better as now), my problem is at time to integrate my own .zip libraries. If I could implemets my own external libraries as local I would like know it
You see that that command line is just a fancy way of using the lib_deps directive as I have already linked with its documentation above – have a read through that, please.
You can also use the lib_extra_dirs option if you just want to point to an existing library folder on disk.
Hey - new here. I just ran this script and it worked as expected.(thanks) I’m hoping you can tell me where to go to learn how to convert my soon-to-be-deprecated zip files into the new lib strategy required by platformio …
WARNING: This command is deprecated and will be removed in the next releases.
Please use `pio pkg install` instead.
pio pkg -h
Usage: pio pkg [OPTIONS] COMMAND [ARGS]...
Options:
-h, --help Show this message and exit.
Commands:
exec Run command from package tool
install Install the project dependencies or custom packages
list List installed packages
outdated Check for outdated packages
pack Create a tarball from a package
publish Publish a package to the registry
search Search for packages
show Show package information
uninstall Uninstall the project dependencies or custom packages
unpublish Remove a pushed package from the registry
update Update the project dependencies or custom packages
This is just pio pkg install -l C:\Users\Max\Downloads\Adafruit-GFX-Library-master.zip now to install a library. If you want to install it globally instead of per-project, use pio pkg install -g -l ....