Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Installation

Timor Gruber edited this page Feb 2, 2018 · 3 revisions

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:

Linux

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.

OS X

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

Windows

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:

Clone this wiki locally