-
-
Notifications
You must be signed in to change notification settings - Fork 398
Document library search paths #713
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
This information is documented in the "Sketch Build Process" documentation: However, that documentation was written with the Arduino IDE in mind and could use some updates to be more friendly to the Arduino CLI user. Arduino CLI uses the same system, but Arduino CLI uses the term "user directory" in place of the Arduino IDE's "sketchbook". Note that the user directory location is configurable. You can find the location with |
That is very helpful information, thanks! Your last paragraph would be wonderful in the docs somewhere. I did read that exact passage that you linked to, and could not parse that any of it referred to And yes, the "sketchbook" was the most confusing keyword. I assumed that Agreed, It would be nice to use the same keyword Thanks for the clarifications. |
+1. In the IDE if I set the Sketchbook location in preferences it finds all the libraries I have in
the libraries aren't auto-discovered. I'd like the option for it to work like it does in the IDE. To be fair, what I really want is a transparent build functions in CMake so I can use tested and scalable existing build solutions (I know there's a bunch of open source stuff) but I'd be happy if I could get the CLI to replicate what the IDE does with the same minimal effort. |
This is a request that somewhere in the documentation the library search paths would be documented.
Currently I have my own library which lives in a git repo (and is not part of the arduino libraries index.) I couldn't find anything in the documentation about where to put it so that
arduino-cli compile
would find it.Finally in a non-arduino webpage I found that if you put a library in
~/Documents/Arduino/libraries
(on macOS) thenarduino-cli compile
will find it. It would be nice if this were documented somewhere.The text was updated successfully, but these errors were encountered: