Skip to content

Building AVRDUDE for Windows using Cygwin

mcuee edited this page Dec 31, 2022 · 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
  • flex
  • bison
  • libelf-devel
  • libusb-devel
  • libusb1.0-devel
  • libhidapi-devel
  • libftdi1-devel
  • libreadline-devel

Build Instructions

To build AVRDUDE for Cygwin, run the following commands:

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