Skip to content

Building AVRDUDE for Windows using Cygwin

mcuee edited this page Apr 20, 2024 · 16 revisions

If you prefer to use Cygwin as your development environment, you may build AVRDUDE directly in Cygwin.

The Cygwin stock libraries, such as libusb-1.0, libusb-win32, or libftdi do not support the entire USB driver functionality, as the custom libraries of the MSVC builds do. The official avrdude Windows binary release will use MSVC builds. If you have trouble connecting to your USB devices, see Troubleshooting USB devices in Windows.

The Cygwin build is not recommended in general as it has not good support for libusb (unmaintained). Avoding using the Cygwin build unless you have to use it.

Prerequisites

To build AVRDUDE in Cygwin, you need the following packages installed:

  • make
  • gcc
  • git
  • cmake
  • pkg-config
  • flex
  • bison
  • libelf-devel
  • libusb-devel
  • libusb1.0-devel
  • libhidapi-devel
  • libftdi1-devel
  • libreadline-devel

Note: there is no libserialport-devel package for Cygwin. If you need the support you have to build from source.

Minimum required version for CMake is 3.14.

Build Instructions

To build AVRDUDE for Cygwin, run the following commands:

git clone https://github.com/avrdudes/avrdude.git
cd avrdude
cmake -G"Unix Makefiles" -D CMAKE_BUILD_TYPE=RelWithDebInfo -B build_cygwin
cmake --build build_cygwin