Trying to compile openocd-0.6.1.tar.gz and hitting errors.
First I installed libftd2xx1.1.12.tar.gz from FTDI site here
http://www.ftdichip.com/Drivers/D2XX.htm
Followed the read me then tried to compile OCD and got my first set of errors.
usb_blaster.c:99:20: error: ftd2xx.h: No such file or directory
usb_blaster.c:120: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ftdih'
usb_blaster.c: In function 'usb_blaster_buf_write':
usb_blaster.c:129: error: 'FT_STATUS' undeclared (first use in this function)
Did some searching and found I had to manually copy ftd2xx.h and WinTypes.h from the libftd2xx source directory to /usr/local/include/ That resolved that issue.
Next tried compiling with
./configure --enable-usb_blaster_ftd2xx
make
and got this error
cc1: warnings being treated as errors
usb_blaster.c: In function 'usb_blaster_buf_write':
usb_blaster.c:138: error: implicit declaration of function 'ftd2xx_status_string'
usb_blaster.c:138: error: format '%s' expects type 'char *', but argument 6 has type 'int'
More searching and found this suggestion
./configure --enable-usb_blaster_ftd2xx --disable-werror
make -i
Trying that I get farther in the build but it still fails.
./.libs/libopenocd.a(usb_blaster.o): In function `usb_blaster_buf_write':
/home/debug1/openocd-0.6.1/src/jtag/drivers/usb_blaster.c:135: undefined reference to `FT_Write'
/home/debug1/openocd-0.6.1/src/jtag/drivers/usb_blaster.c:138: undefined reference to `ftd2xx_status_string'
./.libs/libopenocd.a(usb_blaster.o): In function `usb_blaster_quit':
/home/debug1/openocd-0.6.1/src/jtag/drivers/usb_blaster.c:487: undefined reference to `FT_Close'
Again more searching turned up this post
http://andrey.mikhalchuk.com/2009/06/03 … ation.html
Took a look at the libtool code included with 0.6.1 and it does not seem to match up with what is listed in his post. At this point kinda lost as to what to do next. Any ideas where I went wrong or hot to go about getting openocd to compile under linux with usb-blaster support???