On Fri, Oct 12, 2012 at 9:57 PM, Jonathan Dumaresq
<jdumar...@cimeq.qc.ca> wrote:
> Xiaofan Chen wrote:
>> You should either use the MinGW.org cross
>> compiler (i586-mingw32msvc-gcc) or the MinGW-w64 32bit cross compiler
>> (i686-w64-mingw32-gcc) and do not mix them.
>
> Yes now I know.
>>
>> Anyway I just tried to cross build openocd git under Ubuntu 12.04
>> using MinGW.org and I have no issues.
>
> Have you try with the gcc-mingw32 package in ubuntu repository
> or your have download the toolchain directly from the mingw.org ?

I use the mingw32 package from Ubuntu repo which is for
MinGW.org compiler.

mingw.org does not provide cross compiler. It is more up
to date than the one in Ubuntu. This is part of the reasons
I use native Windows MinGW/Msys and not cross build
for libftdi/openocd binaries I distribute.

I also had some bad experiences with Ubuntu's mingw-w64
toolchain so I do not use them. I rather use the personal
build of sezero or rubenvb from mingw-w64's official site.
They provide Linux cross compiler.

http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/

http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/

>> (but I can cross build it under Ubuntu as well).
>
> To cross build libftdi on linux do you use the cmake or
the configure way ?

I use Cmake in general for libftdi since that is the preferred
way by libftdi developers.




-- 
Xiaofan

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to