i tried cross compiling for win32, since it's what i actually needed:
./configure --enable-mantainer-mode --build=i686-pc-linux-gnu
--host=i586-mingw32msvc
that works fine.

i need libftdi, so i'm trying
./configure --enable-mantainer-mode --enable-ft2232_libftdi
--build=i686-pc-linux-gnu --host=i586-mingw32msvc

but ft2232.c can't find ftdi.h.
I tried adding --includedir=/usr/include/ (just in case) but it still fails.
mingw seems to look in  /usr/i586-mingw32msvc/include/ and
/usr/i586-mingw32msvc/lib/
i tried adding usb.h and ftdi.h to /usr/i586-mingw32msvc/include/ the
ftdi libraries to  /usr/i586-mingw32msvc/include/, but no luck.

do i have to compile libusb and libftdi with mingw before doing any
openocd stuff?

thanks!







On Tue, Jun 28, 2011 at 2:07 AM, Steve Bennett <[email protected]> wrote:
> On 28/06/2011, at 5:14 PM, Xiaofan Chen wrote:dsp568013.chp
>
>> On Tue, Jun 28, 2011 at 2:25 PM, Steve Bennett <[email protected]> 
>> wrote:
>>> If you like, you can try the following two patches.
>>> To do this, you will need to first update jimtcl to the master branch.
>>>
>>> I have compile tested this, but I don't have anything to run it on.
>>
>> Just a minor thing.
>>
>> -#ifdef __MINGW32__
>> -#define MKDIR_ONE_ARG
>> +#if defined(__MINGW32__) || defined(__MINGW64__)
>> +#define HAVE_MKDIR_ONE_ARG
>>
>> Actually MinGW-w64 (32bit or 64bit) also defines __MINGW32__.
>>
>> bash-4.1# x86_64-w64-mingw32-gcc -dD -E -x c /dev/null | grep MINGW64
>> #define __MINGW64__ 1
>> bash-4.1# x86_64-w64-mingw32-gcc -dD -E -x c /dev/null | grep MINGW32
>> #define __MINGW32__ 1
>>
>> In case you need to differentiate MinGW.org MINGW32 and
>> MinGW-w64, you can use __MINGW64_VERSION_MAJOR
>> which is defined in the file _mingw_mac.h for MinGW-w64.
>>    #define __MINGW64_VERSION_MAJOR    1
>>    #define __MINGW64_VERSION_MINOR    1
>
> Thanks. I was just being safe since the OP seemed to indicate
> that __MINGW32__ wasn't defined.
>
> Cheers,
> Steve
>
> --
> µWeb: Embedded Web Framework - http://uweb.workware.net.au/
> WorkWare Systems Pty Ltd
> W: www.workware.net.au      P: +61 434 921 300
> E: [email protected]   F: +61 7 3391 6002
>
>
>
>
>
>



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

Reply via email to