Compiling on Mac OS X

Hi,

am trying to compile OpenOCD on OS X 10.4.8 (Intel) with:

./configure --enable-ft2232-ftd2xx --with-ftd2xx=/usr/local/lib/

and am getting this error:

/usr/bin/ld: Undefined symbols:
_ft2232_interface
collect2: ld returned 1 exit status

I installed the ftdi dylib per ftdi recommendation in /usr/local/lib/ as giving as argument in ./configure. Is there anything else I need to do, so it knows about the ft2232 interface?

Thanks!

Arthur

Use underscore:

./configure --enable-ft2232_ftd2xx --with-ftd2xx=/usr/local/lib/

Regards,

Magnus

Makes no difference, the INSTALL readme does say:

   You have to explicitly enable desired JTAG interfaces during configure:

./configure --enable-parport --enable-ft2232-libftdi (OR  --enable-ft2232-ftd2xx) \
            --enable-amtjtagaccel

No underscore, but a dash…

Other ideas?

Arthur

Right, it seems - or _ does not matter. If you do ./configure --help you get the underscores.

The missing _ft2232_interface is not the ftd2xx library, it is the openocd module for the ft2232 interface. The jtag subsystem in jtag.c is built with support for ft2232, and expects the _ft2232_interface but then that module ( ft2232.c ) is not built.

This could be related to a problem with the Makefile.am

http://www.sparkfun.com/cgi-bin/phpbb/v … php?t=4165

Look in the src/jtag/Makefile and search for FT2232FILES =

If it is not

FT2232FILES = ft2232.c

then try manually to add the ft2232.c and recompile.

Regards,

Magnus

Try this patch: http://mmd.ath.cx/openocd/XScale_Makefile_am.patch

There’s a problem with the autotools on some systems, the above patch fixes this.

Best regards,

Dominic

Ok, that worked!

Also had to make ftd2xx.h and WinTypes.h accessible from the trunk, then it compiled and installed fine.

Thanks, on to the next stage.

Arthur