Xiaofan Chen | 22 Apr 2012 06:29
Picon

Re: Cross compiling issues

On Sun, Apr 22, 2012 at 12:17 PM, Jose Pablo <josepablo.castro <at> gmail.com> wrote:
>
> On Sat, Apr 21, 2012 at 9:48 PM, Xiaofan Chen <xiaofanc <at> gmail.com> wrote:
>
>> On Sun, Apr 22, 2012 at 11:35 AM, Xiaofan Chen <xiaofanc <at> gmail.com> wrote:
>> > Also please just try
>> > "./configure --host=i686-mingw32 --enable-examples-build"
>> > if your cross compiler is called i686-mingw32-gcc.
>> >
>>
>
> I used this:
>
> ./configure --enable-examples-build --host=i586-mingw32msvc
>  --prefix=/home/jose/usr/local/libusb-1.0.9/mingw32/ --enable-debug-log
> --enable-static --disable-shared
>
> and works!!!!
>
> Now, how can I  cross-compile for amd64?

You need to install MinGW-w64. Hopefully your distro has
a recent version. If not, then you can go to Sourceforge to
get one.
http://mingw-w64.sourceforge.net/

Personally I use this un-official build under Linux since the official
automatic-build is usually not very good.
http://www.drangon.org/mingw/

But the personal build from sezero is also said to be good.
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/sezero_4.5_20111101/

Under Windows, I use TDM64.
http://tdm-gcc.tdragon.net/download

--

-- 
Xiaofan

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2

Gmane