Hi, I tried yesterday to compile OpenOCD but following errors occured.
./configure --enable-parport --enable-parport-ppdev --enable-ft2232_libftdi
.
.
checking Build & Link with libftdi… configure: error: Cannot build & run test program using libftdi
.
.
./configure --enable-parport --enable-parport-ppdev --enable-ft2232_ftd2xx --with-ftd2xx-linux-tardir=/home/grzes/openocd/libftd2xx0.4.16
configure script ends with no complain but make gives such error:
.
.
/bin/sh …/libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -I/home/grzes/openocd/libftd2xx0.4.16 -Wall -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -o openocd main.o libopenocd.la -ldl /home/grzes/openocd/libftd2xx0.4.16/static_lib/libftd2xx.a.0.4.16 -lpthread
libtool: link: gcc -std=gnu99 -g -O2 -I/home/grzes/openocd/libftd2xx0.4.16 -Wall -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -o openocd main.o /home/grzes/openocd/libftd2xx0.4.16/static_lib/libftd2xx.a.0.4.16 ./.libs/libopenocd.a -ldl -lpthread
./.libs/libopenocd.a(ft2232.o): In function `ft2232_quit’:
/home/grzes/openocd/src/jtag/ft2232.c:2773: undefined reference to `FT_Close’
./.libs/libopenocd.a(ft2232.o): In function `ft2232_write’:
/home/grzes/openocd/src/jtag/ft2232.c:347: undefined reference to `FT_Write’
./.libs/libopenocd.a(ft2232.o): In function `ft2232_init_ftd2xx’:
/home/grzes/openocd/src/jtag/ft2232.c:1809: undefined reference to `FT_SetVIDPID’
/home/grzes/openocd/src/jtag/ft2232.c:1839: undefined reference to `FT_OpenEx’
/home/grzes/openocd/src/jtag/ft2232.c:1903: undefined reference to `FT_SetLatencyTimer’
/home/grzes/openocd/src/jtag/ft2232.c:1909: undefined reference to `FT_GetLatencyTimer’
/home/grzes/openocd/src/jtag/ft2232.c:1919: undefined reference to `FT_SetTimeouts’
/home/grzes/openocd/src/jtag/ft2232.c:1925: undefined reference to `FT_SetBitMode’
/home/grzes/openocd/src/jtag/ft2232.c:1931: undefined reference to `FT_GetDeviceInfo’
/home/grzes/openocd/src/jtag/ft2232.c:1871: undefined reference to `FT_ListDevices’
/home/grzes/openocd/src/jtag/ft2232.c:1882: undefined reference to `FT_ListDevices’
/home/grzes/openocd/src/jtag/ft2232.c:1809: undefined reference to `FT_SetVIDPID’
/home/grzes/openocd/src/jtag/ft2232.c:1847: undefined reference to `FT_OpenEx’
./.libs/libopenocd.a(ft2232.o): In function `ft2232_purge_ftd2xx’:
/home/grzes/openocd/src/jtag/ft2232.c:1960: undefined reference to `FT_Purge’
./.libs/libopenocd.a(ft2232.o): In function `ft2232_read’:
/home/grzes/openocd/src/jtag/ft2232.c:385: undefined reference to `FT_Read’
collect2: ld returned 1 exit status
make[3]: *** [openocd] Error 1
make[3]: Leaving directory `/home/grzes/openocd/src’
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/grzes/openocd/src’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/grzes/openocd’
make: *** [all] Error 2
I’ve already followed workaround in viewtopic.php?t=16477&start=0&postdays= … ft2232quit but it doesn’t work for me.
Any ideas?