-
Notifications
You must be signed in to change notification settings - Fork 173
Building AVRDUDE for Linux
mcuee edited this page Apr 19, 2025
·
18 revisions
To build AVRDUDE for Linux, you need to install the following packages.
gcc g++ git cmake pkg-config flex bison libelf libusb libhidapi libftdi1 readline libserialportMinimum required version for CMake is 3.14.
Note that you may need to adapt the code depending on the different Linux distribution you are using.
For instance, for Debian based systems, you would run:
sudo apt-get install build-essential git cmake flex bison pkg-config libelf-dev libusb-dev libhidapi-dev libftdi1-dev libreadline-dev libserialport-devFor RPM based systems, you would run:
sudo dnf install gcc-c++ git cmake flex bison pkg-config elfutils-libelf-devel libusb-compat-0.1-devel hidapi-devel libftdi-devel readline-devel libserialport-develTo build AVRDUDE for Linux, run the following commands:
git clone https://github.com/avrdudes/avrdude.git
cd avrdude
./build.shIf you want to enable LINUXGPIO or LINUXSPI support, add the CMake options -DHAVE_LINUXGPIO=1 and -DHAVE_LINUXSPI=1:
cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo -D HAVE_LINUXGPIO=1 -D HAVE_LINUXSPI=1 -B build_linux
cmake --build build_linuxTake note build.sh will take care of this for embedded Linux system with arm or aarch architecture.
To install a local build on your system, run the following commands:
sudo cmake --build build_linux --target install