Hello Dick,

I try to understand how the libftdi test is working, I think
the test source look like (conftest.c):

#include <stdio.h>
#include <ftdi.h>

int
main( int argc, char **argv )
{
        struct ftdi_context *p;
        p = ftdi_new();
        if( p != NULL ){
            return 0;
        } else {
            fprintf( stderr, "calling ftdi_new() failed\n");
            return 1;
        }
}

If this can be compiled, the libftdi must be available. Now I try
to make the test by hand.

libftdi is installed here:

/opt/local/libftdi-0.15

and libusb here:

/opt/local/libusb-0.1.12

Therefore I use the following command line:

CFLAGS="-I/opt/local/libftdi-0.15/include -I/opt/local/libusb-0.1.12"
LDFLAGS="-L/opt/local/libftdi-0.15/lib -L/opt/local/libusb-0.1.12"
LIBS="-lftdi -lusb" gcc conftest.c

But got the following error:

Undefined symbols,
  "_ftdi_new", referenced from:
     _main in ccy6Vq7b.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

I do not know where the problem is.

Best regards,

Michael
-----Ursprüngliche Nachricht-----
Von: Dick Hollenbeck [mailto:[email protected]]
Gesendet: Dienstag, 14. April 2009 22:00
An: Michael Fischer
Cc: Openocd-Dev
Betreff: Re: [Openocd-development] How to configure the build, without
using dynamic libraries?


Michael Fischer wrote:
> Hello list,
>
> I am working on a Mac OS X installer for OpenOCD.
> If I only install the openocd executable, I got an
> error that the dynamic library for libusb and libftdi
> can not be found.
>

Are you saying that you want to use:

1) static libraries for libusb and libftdi?  OR

2) neither static nor dynamic libraries for libusb and libftdi?


Which cable driver?


Dick

> This is correct, because this libraries was not installed.
>
> For the toolchain build I could use --disable-shared, or
> removed the library with the extension dynlib.
>
> But how can I get OpenOCD to work without dynamic libraries?
>
> Best regards,
>
> Michael
>

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to