Skip to content

Building AVRDUDE for FreeBSD

Marius Greuel edited this page Jan 13, 2022 · 11 revisions

Prerequisites

On FreeBSD, you can normally install AVRDUDE through the ports subsystem, as devel/avrdude.

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

pkg install cmake libftdi hidapi

Build Instructions

To build AVRDUDE for FreeBSD, run the following commands:

git clone https://github.com/avrdudes/avrdude
cd avrdude/src
cmake -D CMAKE_C_FLAGS=-I/usr/local/include -D CMAKE_EXE_LINKER_FLAGS=-L/usr/local/lib -D CMAKE_BUILD_TYPE=RelWithDebInfo -B build_freebsd
cmake --build build_freebsd

Installation

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

sudo cmake --build build_freebsd --target install