Installing Arduino libraries on Mac via terminal

Hi,

I am on a Mac, trying to install the Arduino libraries via Terminal commands by building from the source as described here:

The directions say to set the current directory to the build folder and follows with two commands "ant" and "dist". What commands are these? I don't see them in the list of Linux Commands. I see the list in the folder the file I think is required to 'build' but don't know the proper command to do so.

Any help would be greatly appreciated.

Thank

Those instructions are for building the Arduino IDE from source, not install libraries. Please describe exactly what you're trying to accomplish.

Thanks for your response and sorry about being vague.

I would like to install the Arduino Libraries that came in the Arduino IDE download I was mentioning.

For context, I installed CrossPack which automatically allows me to reference libraries such as avr/io.h when working in Xcode - I was looking to access the Arduino libraries (such as SPI.h) in the same way.

Thanks again!

The architecture-specific libraries like SPI are bundled with the hardware packages. Arduino AVR Boards comes with the Arduino IDE but you can also download it here:

they are in the libraries subfolder.

The Arduino IDE also comes with some non-architecture specific libraries (e.g. Ethernet). You can get those libraries individually from the arduino-libraries organization on GitHub:

or you can just download the entire Arduino IDE to get them all at once:

They are in the libraries subfolder.

Part of the Arduino IDE build process is to grab those bundled libraries from the individual repositories:

I'm not sure whether you could run only that part of the build script.

I would definitely try to avoid cloning the entire arduino/Arduino repo as it's pretty large!

Hi pert,

Thank you for the links. I have installed Arduino IDE via homebrew and have also downloaded the architecture-specific libraries in your first link.

I see the Arduino.h file and the SPI.h file in the architecture-specific library directory but what is the best way to install those libraries? I cloned the ArduinoCore-avr-master directory to the usr/local/ folder via git, where the avr libraries also reside. however, although I can successfully reference the avr code via #include <avr/interrupt.h>, I cannot do the same with my SPI files like #include <src/spi.h> .

How do I get Xcode to recognize the ArduinoCore-avr-master libraries like the CrossPack library?

Thanks again.