OK, I'm having a problem with cross-compiling...

libftdi1 CFLAGS and LIBS are correctly discovered, see config.log fragment:

---
LIBFTDI_CFLAGS='-I/usr/i686-w64-mingw32/include/libftdi1 
-I/usr/i686-w64-mingw32/include/libusb-1.0 '
LIBFTDI_LIBS='-L/usr/i686-w64-mingw32/bin -L/usr/i686-w64-mingw32/lib -lftdi1 
-lusb-1.0 '
---

But later in compilation these are not used at all:

---
libtool: compile:  i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. 
-I../../../../../src/jtag/drivers/usb_blaster -I../../../.. 
-I../../../../../src -I../../../../src -I../../../../../src/helper 
-DPKGDATADIR=\"/usr/local/share/openocd\" -DBINDIR=\"/usr/local/bin\" 
-I../../../../../jimtcl -I../../../../jimtcl -I../../../../../src/jtag/drivers 
-isystem /usr/i686-w64-mingw32/include/libusb-1.0 -g -O2 
-D__USE_MINGW_ANSI_STDIO -Wall -Wstrict-prototypes -Wformat-security -Wshadow 
-Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align 
-Wredundant-decls -Werror -MT ublast_access_ftdi.lo -MD -MP -MF 
.deps/ublast_access_ftdi.Tpo -c 
../../../../../src/jtag/drivers/usb_blaster/ublast_access_ftdi.c -o 
ublast_access_ftdi.o
../../../../../src/jtag/drivers/usb_blaster/ublast_access_ftdi.c:31:18: fatal 
error: ftdi.h: No such file or directory
 #include <ftdi.h>
                  ^
compilation terminated.
Makefile:400: recipe for target 'ublast_access_ftdi.lo' failed
make[7]: *** [ublast_access_ftdi.lo] Error 1
---

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?

Regards,
FCh




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

Reply via email to