This may have been answered elsewhere I thing about zip files.
But is there a way to manually install a custom arduino library. I see libraries are stored in arduino15 directory but not sure how to set it up so if a copy a lib to that location a sketch will see it?
If not really need a way to do it! Applab improvement?
Part of the answer is on Arduino App Lab Libraries Upload . I am working to document my experience with using custom library, but I can already tell you.. it is nothing like the Arduino IDE experience.
It uses 3 Adafruit libraries, as you can see in the Libraries...
However if I use an Linux Command prompt, and look for any files in this project
that has the name Adafruit...
Yeah I had tried to put the lib in that directory and link it in the yaml but it doesn’t see it so something else more complicated is needed. Wish there was an automatic way to do. However, using WinSCP (the link you gave me) makes it a lot easier to copy things instead of using adb push/pull method.
The libraries added with App Lab are downloaded from github and installed in .arduino15/internal directory. But they need to be installed. Unzip a library here is not enough to use it in sketches. And that way you can’t add custom libraries not on github.
The only option I have found is to add them in: .arduino15/packages/arduino/hardware/zephyr/0.x/libraries but they will be lost at each update.
My choice is to put all the libraries I want to use in my sketches in a dedicated directory (I use /home/arduino/Arduino/mylibs) and make a symbolic link (ls -s source_library_path reference_library_path) for each in zephyr libraries above.
I list the libraries in a text file and I have written a bash script that read each line and make the lien. So I just need to rerun the script after a zephyr update.
I fully agree the Arduino App Lab should be improved for the library search and include the local libraries.
The active Arduino community so far has delivered 4 options to deal with this in meantime. I am trying to document them, each with their advantages and disadvantages
Option 1: copy the local libraries needed in the app structure and adjust sketch.yaml
Option 2: copy the local libraries needed in a single library folder and adjust sketch.yaml
Option 3: copy the local libraries needed in a single library folder and Zeypher libraries
Option 4: use Arduino IDE for the sketch, use Arduino Apps Lab for the Linux code part
Maybe slightly off this topic, but another question I have about libraries is, what happens, when I library I have installed/used/Add is updated?
For example one of my apps is currently using Adafruit GFX. If I look in the
.arduino15 library I see that the directory containing it is named: Adafruit_GFX_Library_1.12.4_3344e7ed2124dbaf
Which I am assuming is version 1.12.4 and probably a hashtag...
Which also matches what is in the sketch.yaml file.
Now suppose Adafruit releases a new version of the library? What happens?
Is there any notification of this? Will it automatically update my current projects using the older version? If not how do I do it?
If I edit a local copy of a library, when I try to use that library does it check hashtags?
(My guess is not, but...)
If I create a new project and click to add it, does it use my currently installed one or
does it download the current one? And link to it? Or continue to use the one that was downloaded for earlier project?
...
Think it is going to use whatever is in ./arduino/internal at the time. At least that is what I assuming since it seems like it copies from that directory into the app directory, i.e., cache libraries.
Actually what I think will occur. If you have adfuitGfx 1.12 as a downloaded library and a custom version that you reference in the sketch.yaml file as you as you dont include the library via add libraries Applab wont use the one you downloaded