Duane Ellis wrote:
> Patch is not attached [it would be rather large]  and - documentation 
> has been updated.
> 
> ====================================
> 
> Overview of changes:
> 
> 1) I have added support to help deal with issues with "ftd2xx" - on 
> Win32, and Linux, and libftdi.
> 
> 2) In the 'testing' directory, I have added some makefiles that I used 
> to build OpenOCD through a variety of permutations.
>    (( should perhaps add more permutations, contributions are welcome ))
> 
>      see:  ${OPENOCD}/testing/build.test1
> 
> Some details are below.
> 
> -- Duane.
> 
> ====================================
> 
> This ./configure option has been removed:
> 
>       --with-ftd2xx=<PATH>
> 
> And has been replaced with:
> 
>      --with-fd2xx-linux-tardir=<PATH>

SVN revison 1282:

This doesn't seem to work. Regardless of

./configure --enable-ft2232_ftd2xx 
--with-fd2xx-linux-tardir=<path_to>/libftd2xx0.4.16/

or

./configure --enable-ft2232_ftd2xx 
--with-fd2xx-linux-tardir=<path_to>/libftd2xx0.4.16/static_lib/

I get

checking for libftd2xx.a (linux)... configure: error: The (linux) 
ftd2xx library from FTDICHIP.com is linux only. Try 
--enable-ft2232-libftdi instead

I'm on Linux.

 > pwd
<path_to>/libftd2xx0.4.16
<path_to>/libftd2xx0.4.16> ls libftd2xx.so.0.4.16
libftd2xx.so.0.4.16
<path_to>/libftd2xx0.4.16> ls static_lib/
libftd2xx.a.0.4.16

>      --with-ftd2xx-win32-zipdir=<PATH>
> 
> Details are in the user manual.
> 
> A new option has been added that is applicable to LINUX Only.
> 
>       --with-ftd2xx-lib=static    [the default]
> or   --with-ftd2xx-lib=shared [not default]

I would prefer shared to be default.

> ====================================
> 
> Documentation for the build test case1 is located in:
> 
>     ${openocd}/testing/build.test1/README.TXT
> 
> ====================================
> END
> ====================================

Due to missing --prefix handling, --enable-ft2232_libftdi is more 
broken now as before. It now stops already at configure time:

 > ./configure --prefix=<path> --enable-ft2232_libftdi
...
checking Build & Link with libftdi...... configure: error: Cannot 
build & run test program using libftdi

I can only 'fix' this by

 > CFLAGS="-g -O2 -L<prefix_path>/lib" ./configure 
--prefix=<prefix_path> --enable-ft2232_libftdi

I would have preferred to first fix --prefix for libftdi before 
introducing (the not finally discussed?)  linux-tardir and 
win32-zipdir options for libftd2xx.

Sorry if I miss something.

Best regards

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

Reply via email to