libftdi Archives

Subject: Re: libftdi-1.0 for Ubuntu 9.10

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 23 Feb 2010 22:12:34 +0800
On Mon, Feb 22, 2010 at 8:13 PM, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:
>> http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&path=%2Ftrunk%2Flibftdi-1.0%2F
>>
>> It's behind upstream by several revisions, but it has those generated files.
>>
> Thanks. It seems to work under FreeBSD (only the libftdi part, not the 
> libftdipp
> and the other parts) after some minor modifications.
>

This also helps me to build libftdi-1.0 under Cygwin/Windows with the
new libusb 1.0 Windows backend.

I could not get the configure script to recognize the libusb-1.0
under Windows. So I remove the check of the libusb-1.0 and
use the following option to build libftdi-1.0.

...
if test -n "$PKG_CONFIG"; then
        _pkg_min_version=0.9.0
...
fi

have_libusb_1_0=yes
if test "$have_libusb_1_0" = "yes"; then
  CFLAGS="$CFLAGS $LIBUSB_1_0_CFLAGS"
  CXXFLAGS="$CXXFLAGS $LIBUSB_1_0_CFLAGS"
  USB_LIBS="$USB_LIBS $LIBUSB_1_0_LIBS"
  HAVE_USB=yes

$as_echo "#define HAVE_LIBUSB_1_0 1" >>confdefs.h
fi
...

ENABLE_ASYNC_MODE=0


mcuee@AcerPC ~/mcu/libftdi1/libftdi-1.0
$ LIBUSB_1_0_CFLAGS="-I/usr/local/include/libusb-1.0" LIBUSB_1_0_LIBS="-L/usr/l
ocal/lib -lusb-1.0" ./configure --disable-libftdipp --disable-python-binding

I have not installed CMake under cygwin.

How do you build libftdi-1.0 under Windows?

-- 
Xiaofan http://mcuee.blogspot.com

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread