My MacBook Pro died recently, and Apple replaced the logic board, so I had to reinstall everything. However, all my files are in iCloud or Dropbox, so all of my Arduino libraries were saved, except that I do not know how to get the Arduino IDE to recognize these libraries anymore. The IDE will not show that these libraries exist or are installed.
How do I get my libraries folder to be recognized again? I have already changed my directory to be ? /Users//Documents/Arduino. The libraries folder is in /Users//Documents/Arduino.
I am getting a full list of this;
Invalid library found in /Users//Documents/Arduino/libraries/PubSubClient: no headers files (.h) found in /Users//Documents/Arduino/libraries/PubSubClient
Also if it means anything, I just installed an ArtNet library and it went to my libraries folder, but there is no "src" folder within the ArtNet folder I installed. So the .h file is in the ArtNet folder, if that isn't too confusing.
And ArtNet I installed like normal though the Library Manager, whereas the others are just in a folder, and not technically "installed"....I think.
I moved one folder out of the libraries folder, found it in Library Manager and clicked install, and it installed and is working (whereas before it wouldn't even attempt to install if there was already a folder, but it also did not show up in the list of installed libraries).
Does this mean I am going to have to do this for every library? There has to be a better way.
Okay, I'm an idiot. Turns out you should download your files from iCloud so that they are actually on your physical computer, once I clicked the little cloud icon and downloaded all the files, then restarted Arduino IDE, everything was there and worked as it should.
jocansing:
everything was there and worked as it should.
I'm glad to hear it's working now. Thanks for taking the time to post an update with your solution.
jocansing:
Also if it means anything, I just installed an ArtNet library and it went to my libraries folder, but there is no "src" folder within the ArtNet folder I installed. So the .h file is in the ArtNet folder, if that isn't too confusing.
There are two different Arduino library formats:
"1.5 format": Source files under the src subfolder, required library.properties file in the root folder of the library. This format is not compatible with Arduino IDE 1.0.x and older.
"1.0 format": Source files under the root folder of the library, library.properties is optional.
The PubSubClient library is in the "1.5 format". The ArtNet library is in the 1.0 format. Either format will work fine with any modern version of the Arduino IDE.