On Mon, Mar 31, 2014 at 2:13 AM, freddie_chopin <[email protected]> wrote:
> OK, I'm having a problem with cross-compiling...
>
> libftdi1 CFLAGS and LIBS are correctly discovered

Are you using pkg-config for libftdi1 and libusb-1.0?

>...
> But later in compilation these are not used at all:
> ...

> This problem won't be noticed if you use libftdi0, as its headers
> are in the main toolchain inculde path anyway, but with libftdi1 there has
> to be this "libftdi1" at the end of include path... It doesn't work if I give
> explicit LIBFTDI_CFLAGS during configure - to fix the problem I have to
> explicitly set CFLAGS.
>
> Anything I'm doing wrong or maybe libftdi1 is not really supported yet
> and I should use 0.20?

Hmm, I have not tried under Windows but under Mac OS X libftdi1 is
okay for OpenOCD. And in reality, it should be similar to libusb-1.0
(libusb-1.0/libusb.h and libftdi1/ftdi.h).

Probably you can try to use pkg-config to see if that helps in case
you are not using pkg-config.

-- 
Xiaofan

------------------------------------------------------------------------------
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to