-
Notifications
You must be signed in to change notification settings - Fork 12
Installation
Arduino-CMake is cross-platform yet it requires that some programs will be installed before using it.
Suggested by its' name, Arduino-CMake requires Arduino and CMake to be installed on your system. There may be additional requirements depending on your OS of choice.
Listed below are the steps required to install Arduino-CMake for each OS:
Manually install the following packages, preferably with your package manager:
-
gcc-avr
- AVR GNU GCC compiler -
binutils-avr
- AVR binary tools -
avr-libc
- AVR C library -
avrdude
- Firmware uploader
Then, download and install the Arduino SDK.
It's considered best practice to install it to /usr/share
since there is where Arduino-CMake looks for it by default.
At last, install CMake if it's not already installed.
Though similar to Linux since it's also a *nix system, installing Arduino-CMake on Mac is much easier. The Arduino SDK bundles everything required to setup the environment, including the required toolchains.
Start with downloading the Arduino SDK and copying it to Applications
.
Then, also install the FTDIUSBSerial
(for FTDI USB Serial) driver.
Now download CMake if it's not already installed, and install cmake-*.pkg
.
Note: Make sure to click on
Install Command Line Links
First, download and install the Arduino SDK, preferably to Program Files
as suggested by the installer.
This is where Arduino-CMake searches for it by default.
Next, install CMake if it's not already installed (It may also be bundled with your IDE, such as CLion).
If your IDE can build make files
without explicitly installing the make tool, you're good to go.
If not, however, you should install one of the followings: