Arduino Library Locations Mac

Feb 13, 2018  The pre-built ESP-IDF libraries are embedded into the Arduino library build (in Tools/SDK/lib) and linked. The headers come with the Espressif-IDF install. In the above code I point to my location.

ARDUINO COMPATIBLES/LEARN ARDUINOARDUINO COMPATIBLES/ADAFRUIT METRO
Follow these steps to install a library in Mac OSX.

Close the Arduino IDE

First make sure that all instances of the Arduino IDE are closed. The IDE only scans for libraries at startup. LocationsIt will not see your new library as long as any instance of the IDE is open!

Download the Zip File

Make sure to select a released version of the library. Some library repositories are still in development, and may contain unreleased or untested code. The 'Releases' button takes you to the tested and released versions.

  1. Click the 'Releases' button on the Github repository page to find the released version of the library.
  2. Then download the zip file.

Find it in the Downloads Folder

OSX will automatically open the zip file there.

Drag it to your Libraries Folder

Open your sketchbook Libraries folder and drag the master folder from Downloads into it.

Give it a Legal Name

The IDE will not recognize folders with dashes in the name. So you must rename the Github Master Folder. Underscores are OK!

Re-start the IDE

Restart the Arduino IDE and verify that the library appears in the File->Examples menu.
Load one of the library examples to test.

Verify that it Compiles

Click the check-mark icon in the upper left and verify that the example sketch compiles without errors.
This guide was first published on Feb 16, 2013. It was lastupdated on Feb 16, 2013.This page (Installing a Library on Mac OSX) was last updated on Apr 10, 2020.
ARDUINO COMPATIBLES/LEARN ARDUINOARDUINO COMPATIBLES/ADAFRUIT METRO
MacArduino library locations mac cosmetics

The Library Manager is the simplest and safest way to install libraries. If possible, that is the method you should use.

If the library you want to use is not available via the library manager, you can get the source code and place it into your machine's local library folder. The location of the folder is rather specific.

See the file hierarchy below:

It is important to install your libraries in the correct location. Otherwise the compiler will not be able to locate them when you try to compile and upload your sketches.

Incorrectly installed libraries can cause many problems with the IDE.

Locate your Sketchbook Folder and the Libraries Folder Inside

Your sketchbook folder is the folder where the Arduino IDE stores your sketches. This folder is automatically created by the IDE when you install it.
On Linux machines, the folder is named 'Sketchbook' and it is typically located in /home/
On Windows and Macintosh machines, the default name of the folder is 'Arduino' and is located in your Documents folder.

Arduino Library Locations Macon Ga

This is a common source of confusion on Windows and Mac machines, your sketchbook folder is not named 'sketchbook' it is named 'Arduino'!

User installed libraries should go in a folder named Libraries, located inside your sketchbook folder. This is where the IDE will look for user installed libraries.

Arduino Library Download

On version 1.0.2 and later of the Arduino IDE, the 'Libraries' folder is created automatically. On earlier versions of the IDE, you may need to create it when you install your first library.

Arduino Library Locations Machine

Open the Preferences Dialog

Click File -> Preferences in the IDE.

Find the Sketchbook Location

Usually a folder named Arduino in your Documents folder.
Once you know the location, navigate to this folder in Windows Explorer or mac Finder

Create a Libraries Folder

If there is no Libraries folder there, create one.
Right click in Windows Explorer and select New -> Folder.

Rename to Libraries

Right click on the New Folder and select Rename. Then type in Libraries.

This guide was first published on Feb 16, 2013. It was lastupdated on Feb 16, 2013.

Arduino Library Manager

This page (Installing Libraries Manually) was last updated on Apr 10, 2020.