Skip to content

Building AVRDUDE for Windows using Cygwin

Marius Greuel edited this page May 17, 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 Window builds do. If you have trouble connecting to your USB devices, see Troubleshooting USB devices in Windows.

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

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

Clone this wiki locally