On Mon, Jul 6, 2009 at 5:40 PM, Spencer Oliver<s...@spen-soft.co.uk> wrote:
>
>> Somehow cross build with ftd2xx and libftdi do not work for
>> me yet. I just tried the process under Ubuntu 9.04.
>>
>> 1) With libftdi, it chocked at the test program building.
>> With normal build under Linux, it works.
>> ../trunk/configure --host=i586-mingw32msvc
>> --enable-maintainer-mode --disable-shared --enable-ft2232_libftdi ...
>> checking Build & Link with libftdi...... configure: error:
>> Cannot build & run test program using libftdi
>>
>> 2) With ftd2xx
>> ../trunk/configure --host=i586-mingw32msvc
>> --enable-maintainer-mode --disable-shared --enable-ft2232_ftd2xx
>> --with-ftd2xx-win32-zipdir=/home/mcuee/Desktop/build/openocd/l
>> ibftd2xx-win32
>> ...
>> checking for ftd2xx.lib exists (win32)... checking whether
>> ftd2xx library works... configure: error: Cannot build & run
>> test program using ftd2xx.lib
>>
>
> try the following patch:
> https://lists.berlios.de/pipermail/openocd-development/2009-July/009145.html
>

Under Arch Linux, with libftdi, it is almost good. But then the last
step failed.
Strange, the library is really there.

/bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99  -g -O2 -Wall
-Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter
-Wbad-function-cast -Wcast-align -Wredundant-decls -Werror   -o
openocd main.o libopenocd.la -ldl  -lftdi -lusb
libtool: link: gcc -std=gnu99 -g -O2 -Wall -Wstrict-prototypes
-Wformat-security -Wextra -Wno-unused-parameter -Wbad-function-cast
-Wcast-align -Wredundant-decls -Werror -o openocd main.o
./.libs/libopenocd.a -lwsock32 -ldl -lftdi -lusb
/usr/bin/ld: cannot find -lwsock32
collect2: ld returned 1 exit status
make[3]: *** [openocd] Error 1
make[3]: Leaving directory
`/home/mcuee/Desktop/build/openocd/build-win32-libftdi/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/mcuee/Desktop/build/openocd/build-win32-libftdi/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/mcuee/Desktop/build/openocd/build-win32-libftdi'
make: *** [all] Error 2

[mc...@myhost build-win32-libftdi]$ ls -la /usr/i486-mingw32/lib/libusb*
-rw-r--r-- 1 root root 27984 2009-07-04 17:36 /usr/i486-mingw32/lib/libusb.a
-rw-r--r-- 1 root root  6970 2009-03-19 00:33 /usr/i486-mingw32/lib/libusbcamd.a
-rw-r--r-- 1 root root  6992 2009-03-19 00:33
/usr/i486-mingw32/lib/libusbcamd2.a
-rw-r--r-- 1 root root 27024 2009-07-04 17:36 /usr/i486-mingw32/lib/libusbd.a

[mc...@myhost build-win32-libftdi]$ ls -la /usr/i486-mingw32/lib/libwsock32*
-rw-r--r-- 1 root root 54406 2009-03-19 00:33 /usr/i486-mingw32/lib/libwsock32.a

With ftd2xx, the configuration step still failed.

../trunk/configure --host=i586-mingw32msvc --enable-maintainer-mode
--disable-shared --enable-ft2232_ftd2xx
--with-ftd2xx-win32-zipdir=/home/mcuee/Desktop/build/openocd/libftd2xx-win32

checking for ftd2xx.lib exists (win32)... checking whether ftd2xx
library works... configure: error: Cannot build & run test program
using ftd2xx.lib


-- 
Xiaofan http://mcuee.blogspot.com
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to