I tried to build OpenOCD exactly according to the post viewtopic.php?t=11221. But after ./configure --enable-ft2232_libftdi I got always:
checking for stdbool.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether byte ordering is bigendian... no
checking for strndup... yes
checking for strnlen... yes
checking for gettimeofday... yes
checking for usleep... yes
checking for vasprintf... yes
checking for "./guess-rev.sh"... yes
checking Build & Link with libftdi...... configure: error: Cannot build & run te
st program using libftdi
My analysis shows, that there is an undefined reference to ‘_ftdi_new’. But I’m absolutely sure that the files libftdi.a, ftdi.h, libusb.a and usb.h are in place (doublechecked). These files have the same owner and access rights as all the others in lib and include folder.
I will try it, but I will not work with this build if it is successful.
I am very interested to build the newest Version, because I need OMAP support. Currently I did some tests with release 0.1.0 (rev 1355!!) without success, thus I’m looking for a newer version.
I have the feeling, my problem is more a general issue. The libs are detected by gcc, but a reference to the content of the lib is not possible.
I have seen the same behavior during the build of libftdi: A lot of undefined references to the usb stuff. But usb header and lib are in place. The commoness: The problem regards only to the new libs. Is it necessary to run something like ldconfig??
If there is no other solution for my build problem, would anybody please send an executable (with --enable-ft2232_libftdi) of the newest revision to me. It would be very helpful.
(I’ll provide my e-mail address via internal message)