Skip to content

Building AVRDUDE for NetBSD

mcuee edited this page May 5, 2025 · 3 revisions

Prerequisites

On NetBSD, you can normally install AVRDUDE through the pkgsrc subsystem, as cross/avrdude.

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

pkgin install cmake pkgconf libusb1 libusb-compat libftdi1 libhidapi readline ncurses

Note: libserialport is not available under pkgsrc, so you need to build from source.

git clone https://github.com/sigrokproject/libserialport.git
cd libserialport
./autogen.sh
./configure --prefix=/usr/pkg
make
doas make install

Minimum required version for CMake is 3.14.

Build Instructions

To build AVRDUDE for NetBSD, run the following commands:

git clone https://github.com/avrdudes/avrdude.git
cd avrdude
./build.sh

Installation

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

doas cmake --build build_netbsd --target install
Clone this wiki locally