On Wed, May 13, 2009 at 9:03 PM, Spencer Oliver <s...@spen-soft.co.uk> wrote:
>>
>> No, I still have the same problem with r1776.
>>
>> there are some uint32_t uses in replacement.h which are not recognized
>> - I don't have an elf.h system include.
>>
>> export CPPFLAGS="-IC:/libusb-win32-device-bin-0.1.12.1/include"
>> export LDFLAGS=-LC:/libusb-win32-device-bin-0.1.12.1/lib/gcc
>> export CC=mingw32-gcc
>>
>> ./bootstrap
>> ./configure  --enable-ft2232-ftd2xx --enable-jlink
>> --with-ftd2xx-win32-zipdir=c:/ftdi-2.04.06 --enable-maintainer-mode
>>
>>
>> gives :
>>
>> $ mingw32-make
>> cd . && C:/cygwin/bin/sh.exe /Workspace-1/openocd/missing
>> --run autoheader rm -f stamp-h1 touch config.h.in cd . &&
>> C:/cygwin/bin/sh.exe ./config.status config.h
>> config.status: creating config.h
...

>
> I think this is more related to your setup then openocd.
> mingw32-make uses win32 paths, cygwin sh does not.
>
> If you have got a working cygwin then just use the following to build native
> win32 from a cygwin shell.
> ./configure --enable-maintainer-mode --enable-parport --enable-jlink
> --enable-rlink --enable-ft2232_ftd2xx CC="gcc -mno-cygwin"
> then make
>
> or the other option is to use msys amd the msys make not mingw32-make.
>
> Cheers
> Spen
>

Ok, no particular love for cygwin or mingw32, but the compiler for
cygwin is fairly old ...

So I try a complete cygwin build of openocd, I end up with :

make[3]: entrant dans le répertoire « /Workspace-1/openocd/src/helper »
/bin/sh ../../libtool --tag=CC   --mode=link gcc -std=gnu99  -g -O2
-I/cygdrive/c/ftdi-2.04.06 -Wall -Wstrict-prototypes -Wformat-security
-
Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align
-Wredundant-decls -Werror  -L/cygdrive/c/ftdi-2.04.06/i386 -o
libhelper.la  li
bhelper_la-binarybuffer.lo libhelper_la-options.lo libhelper_la-jim.lo
libhelper_la-jim-eventloop.lo libhelper_la-configuration.lo libhelper
_la-log.lo libhelper_la-command.lo libhelper_la-time_support.lo
libhelper_la-replacements.lo libhelper_la-fileio.lo
libhelper_la-startup_tcl
.lo   -lioperm  -lftd2xx
/usr/bin/grep: /usr/lib/libpopt.la: No such file or directory
/usr/bin/sed: can't read /usr/lib/libpopt.la: No such file or directory
libtool: link: `/usr/lib/libpopt.la' is not a valid libtool archive
make[3]: *** [libhelper.la] Erreur 1
make[3]: quittant le répertoire « /Workspace-1/openocd/src/helper »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /Workspace-1/openocd/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /Workspace-1/openocd »
make: *** [all] Erreur 2

After some head scratching, /usr/lib/libpopt.la is called in cygwin
/usr/bin/cygpopt-0.dll

So <newbie mode on> it looks like the library has to be dynamically
loaded at runtime ? <newbie mode off> - Now how do I do that ?

If anybody can offer some hint ...

I am using SVN 1793

Francois
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to