obdev / CrossPack-AVR

Script and associated files for building avr-gcc and related tools on Mac OS X with Xcode 4
GNU General Public License v2.0
230 stars 54 forks source link

AVRDUDE does not link to LIBUSB during compile #13

Open ryangenz opened 6 years ago

ryangenz commented 6 years ago

The compile succeeds but results in an AVRDUDE build without USB support.

During compile the following check fails:

checking for usb_get_string_simple in -lusb... no

As well as in the Configuration Summary:

DON'T HAVE libelf DON'T HAVE libusb DON'T HAVE libusb_1_0 DON'T HAVE libftdi1

I found I was able to compile with USB support by switching from using version libusb_compat=0.1.5 and rolled back to use libusb 0.1.12 (legacy).

I spent quite some time trying to set the right flag to set to get AVRDUDE to compile with the latest version of LIBUSB, but I couldn't solve it.

Anyone have any ideas?

~R

vossi1 commented 6 years ago

Hi, I installed it on my Mac with Sierra. I installed the latest version from avrdude (6.3): brew install avrdude Now it works great with my avrisp2 clone (barion st isp/tdi/pdi programmer). It has a custom firmware 1.30 on it.

I just bought a second clone from ebay - and that doesn't work properly with avrdude. This clone has the latest atmel-firmware on it.

ryangenz commented 6 years ago

Thanks for this info. Good to know. In this case CrossPack-AVR is not using Brew as the installation method. The script should compile without the use of Brew.