-
Notifications
You must be signed in to change notification settings - Fork 160
Building AVRDUDE for macOS
Hans edited this page Jun 26, 2022
·
38 revisions
The following things are needed to build AVRDUDE on MacOS:
- A C compiler; either full XCode, or the XCode Command Line tools
- cmake, hidapi, libftdi1, libusb, libelf
They can be installed from
Brew:
brew install cmake hidapi libftdi libusb libelf
port install cmake hidapi libftdi1 libusb libelf
To build AVRDUDE for macOS using MacPorts, run the following commands:
git clone https://github.com/avrdudes/avrdude
cd avrdude
cmake -D CMAKE_C_FLAGS=-I/opt/local/include -D CMAKE_EXE_LINKER_FLAGS=-L/opt/local/lib -D CMAKE_BUILD_TYPE=RelWithDebInfo -B build_macos
cmake --build build_macos
To build AVRDUDE for macOS using Brew, run the following commands:
git clone https://github.com/avrdudes/avrdude
cd avrdude
cmake -D CMAKE_C_FLAGS=-I/usr/local/include -D CMAKE_EXE_LINKER_FLAGS=-L/usr/local/Cellar -D CMAKE_BUILD_TYPE=RelWithDebInfo -B build_macos
cmake --build build_macos
To install a local build on your system, run the following commands:
sudo cmake --build build_macos --target install