On 20/09/2010 15:15, Xiaofan Chen wrote:
On Mon, Sep 20, 2010 at 6:48 PM, Spencer Oliver<[email protected]>  wrote:
This code was added for cases where high speed support is not detected by
configure and BUILD_FT2232_HIGHSPEED is not defined.

If this is failing it looks more like a autoconf issue - what is the output
of configure?

You are right. The different between the MinGW 32bit and MinGW-w64
64bit build is that the option is different.

For MinGW 32bit build:
/* Support FT2232H/FT4232HS with FTD2XX or libftdi. */
#define BUILD_FT2232_HIGHSPEED 1

For MinGW-w64 64bit build
/* Support FT2232H/FT4232HS with FTD2XX or libftdi. */
/* #undef BUILD_FT2232_HIGHSPEED */


That part of configure checks for TYPE_2232H being defined.
It uses ftdi.h as its include which in turn includes usb.h - whichever one it finds first.

If mingw-64 are already using usb.h then that creates a bit of a problem for any interface that is expecting libusb usb.h.

The only safe solution would be to use a subdirectory for libusb/libftdi if mingw64 will not change their layout.

Cheers
Spen
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to