-
Notifications
You must be signed in to change notification settings - Fork 160
General Build Instructions Using Auto‐tools
mcuee edited this page May 11, 2025
·
6 revisions
Depending on your requirements, the following prerequisites are needed:
- libelf including header files (for directly reading ELF files)
- libusb 0.1 or 1.0 (or compatible), including header files
- libftdi or libftdi1 (for direct access to FTDI devices)
- libhidapi or libhid (for access to recent Atmel/Microchip dongles)
- automake, autoconf and libtool
cd src
./bootstrap
./configure #(for Linux and Windows MSYS2 mingw64)
CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure #(for macOS Macports, FreeBSD and OpenBSD)
CFLAGS=-I/usr/pkg/include LDFLAGS=-L/usr/pkg/lib ./configure #(for NetBSD)
CFLAGS=-I/opt/homebrew/include LDFLAGS=-L/opt/homebrew/lib ./configure #(for macOS Homebrew)
make
At the end of the configure
command, a configuration summary is issued, like this:
Configuration summary:
----------------------
DO HAVE libelf
DO HAVE libusb
DO HAVE libusb_1_0
DO HAVE libftdi1
DON'T HAVE libftdi
DO HAVE libhid
DO HAVE libhidapi
DO HAVE libreadline
DO HAVE libserialport
DO HAVE pthread
DISABLED doc
DISABLED parport
DISABLED linuxgpio
DISABLED linuxspi