avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] Re: Native USB support for JTAG ICE mkII added


From: Thomas Fischl
Subject: [avrdude-dev] Re: Native USB support for JTAG ICE mkII added
Date: Mon, 11 Jul 2005 10:25:11 +0200 (MEST)

As Joerg Wunsch wrote:

> So the only requirement is the availability of
> usb_get_string_simple() in the version of libusb used, thus I've now
> based the autoconf decision for using USB on the availability of that
> function.

I don't have a JTAG ICE, but I've built my own USB programmer
(http://www.fischl.de/usbasp/) and use avrdude with libusb to communicate
with it, too. I noticed that for compiling on MacOS the line

AC_CHECK_LIB([usb], [usb_get_string_simple])

in configure.ac isn't enough, because two Darwin specific frameworks are
needed: CoreFoundation and IOKit. With following modification I can compile
avrdude with libusb support on MacOS:

# USB stuff
AH_TEMPLATE([HAVE_LIBUSB],
        [Define if USB support is enabled via libusb])
AC_CHECK_LIB(usb, main, have_libusb=yes)
if test x$have_libusb = xyes; then
   case $target in
        *-*-darwin*)
                LIBS="$LIBS -lusb -framework CoreFoundation -framework IOKit"
                ;;
        *)
                LIBS="$LIBS -lusb"
                ;;
   esac
   AC_DEFINE([HAVE_LIBUSB])
fi

Thomas

-- 
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]