Skip to content

Building AVRDUDE for Linux

Marius Greuel edited this page Dec 22, 2021 · 18 revisions

Note: The example here is written for Ubuntu - you may need to adapt the code when you use a different distro.

Prerequisites

To build AVRDUDE for Linux, you need to install the following packages:

sudo apt-get install build-essential git cmake flex bison libelf-dev libusb-dev libftdi1-dev libhidapi-dev

Build Instructions

To build AVRDUDE for Linux, run the following commands:

git clone https://github.com/avrdudes/avrdude
cd avrdude/src
cmake -DCMAKE_BUILD_TYPE=Release -B build_linux
cmake --build build_linux

If you want to enable LINUXGPIO or LINUXSPI support, add the CMake options -DHAVE_LINUXGPIO=ON and -DHAVE_LINUXSPI=ON:

cmake -DCMAKE_BUILD_TYPE=Release -DHAVE_LINUXGPIO=ON -DHAVE_LINUXSPI=ON -B build_linux

Installation

To install a local build on your system, run the following commands:

sudo cmake --build build_linux --target install

Clone this wiki locally