Q1: Why are newly installed libraries not placed in
C:\Program Files (x86)\Arduino\libraries ?
Q2: I suspect it's because at an earlier stage of my ignorance I've specified an alternative. If so, where is that please, as I cannot find it in File > Preferences or Preferences.txt ?
Q3. At the risk of repeating ground covered in an earlier thread, I still don't see why that folder got called arduino_208885 instead of something meaningful like SmartEverything
// I'm learning more about libraries
// So I installed a new one (which I might use some day), SmartEverything LPS25H, using Manage Libraries
// to learn where its files were placed
// They are in
// C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\libraries\arduino_208885
// and the 'key' file is
// C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\libraries\arduino_208885\src\LPS25H.h
// So this sketch was a test to see if it compiles. It does, which is good, but puzzling.
// How does the compiler know to search in that folder, as well as the main library in
// C:\Program Files (x86)\Arduino\libraries ?
#include <LPS25H.h>
void setup()
{
// In case something is needed here
Serial.begin(115200);
Serial.println("Test");
}
void loop()
{
}
This question comes up a lot. And you get lots of different answers. Obviosly the main documentation needs improvement. See if you have an arduino15 folder
All user installed libraries should be in a folder named libraries in the sketchbook folder. Other libraries that are installed with the IDE and installed cores are installed elsewhere. It is best to use the library manager to install libraries. That ensures that the latest versions are installed in the right place.
sevenoutpinball:
This question comes up a lot. And you get lots of different answers. Obviosly the main documentation needs improvement. See if you have an arduino15 folder
Thanks, but do you mean that there are no agreed answers to my three questions?
Yes I do have that folder, C:\Users\terry\AppData\Local\Arduino15. But what is the implication of that please?
groundFungus:
All user installed libraries should be in a folder named libraries in the sketchbook folder. Other libraries that are installed with the IDE and installed cores are installed elsewhere. It is best to use the library manager to install libraries. That ensures that the latest versions are installed in the right place.
Thanks but, as I implied, I know they should be. I'm asking why they are not.
As I also said, I did use the library manager.
Why are newly installed libraries not placed in
C:\Program Files (x86)\Arduino\libraries ?
Libraries are normally installed in the "libraries" subdirectory of your "sketchbook" folder.
Do you by any chance have your sketchbook set to a different location (it's a "preference"), or are you using a "portable" install? The whole directory prefix in your example is "unusual":
Thanks @westfw. I deliberately chose that Dropbox location for my sketchbook, mainly because I can access it (for viewing and downloading new sketches) on my iPhone and iPad as well as my Win 10 PC.
I now see that specifying the Sketchbook location also defines the [u]libraries[/u] location as a subfolder. So should I move (or copy) all other libraries into that folder? Such as those originally installed in C:\Program Files (x86)\Arduino\libraries? And also Q2 of my post, namely why the installation of SmartEverything LPS25H gets called arduino_208885?
should I move (or copy) all other libraries into that folder? Such as those originally installed in C:\Program Files (x86)\Arduino\libraries?
No, because those are "core libraries" If you have any libraries in your Documents\Arduino\libraries directory (from before you moved the sketchbook), you should probably copy them (or just install new versions.)
And also Q2 of my post, namely why the installation of SmartEverything LPS25H gets called arduino_208885?
I don't have any theories on that When I tried installing it here, I got a normal: