I am not so sure if this is a real OpenOCD issue or not but I am having problems to build OpenOCD with libftdi-1.0.
The issue is that libftdi-1.0 (based on libusb-1.0) and right now the include file is inside include/libftdi/ftdi.h and not include/ftdi.h. Similarly libusb-1.0's header file libusb.h is inside include/libusb-1.0/libusb.h. On the other hand, if using pkgconfig or libftdi-config, the correct header file should be detected, even for libftdi-1.0. mcuee@ubuntu:~$ libftdi-config --cflags -I/usr/local/include/libftdi mcuee@ubuntu:~$ libftdi-config --libs -L/usr/local/lib -lftdi The work-around is to copy both libusb.h and ftdi.h (from libusb-1.0) to the /usr/local/include directory but this is not so nice. But I understand that OpenOCD is still using libftdi-0.1x (now it is 0.19). Still I think maybe it is better to accommodate libftdi-1.0 as well. configure:13838: checking Build & Link with libftdi... configure:13877: gcc -std=gnu99 -o conftest -g -O2 conftest.c -ldl -lftdi -lusb >&5 conftest.c:84:18: error: ftdi.h: No such file or directory conftest.c: In function 'main': conftest.c:91: warning: implicit declaration of function 'ftdi_new' conftest.c:91: warning: assignment makes pointer from integer without a cast configure:13877: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "openocd" | #define PACKAGE_TARNAME "openocd" | #define PACKAGE_VERSION "0.5.0-dev" | #define PACKAGE_STRING "openocd 0.5.0-dev" | #define PACKAGE_BUGREPORT "OpenOCD Mailing List <[email protected]>" | #define PACKAGE_URL "" | #define PACKAGE "openocd" | #define VERSION "0.5.0-dev" | ... snipped ... | /* end confdefs.h. */ | | #include <stdio.h> | #include <ftdi.h> | | int | main () | { | | struct ftdi_context *p; | p = ftdi_new(); | if( p != NULL ){ | return 0; | } else { | fprintf( stderr, "calling ftdi_new() failed\n"); | return 1; | } | | ; | return 0; | } configure:13884: error: Cannot build & run test program using libftdi -- Xiaofan _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
