-
Notifications
You must be signed in to change notification settings - Fork 174
Building AVRDUDE for Windows using Cygwin
mcuee edited this page Dec 3, 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. If you have trouble connecting to your USB devices, see Troubleshooting USB devices in Windows.
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
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