Re: Build WIN 64 Binaries on linux?

new topic     » goto parent     » topic index » view thread      » older message » newer message
Thomas said...
mattlewis said...
Thomas said...

OK, Thank you for your help, i do not know much about linux. I have done some cross compiling in the past 32bit with success.

Do i have to build the 64 bit cross compiler myself?

I do not want to venture that.

I suppose you could build it yourself. Ideally, your distro has it in your package management system. On Ubuntu, it's called mingw-w64. This actually installs both the 64 and 32 bit tools for me. You can also get MinGW64 for Windows.

Matt

I have a fresh install of debian 6.0 64 bit and i looked at the pkg repo whith the search term  "Mingw and cross compiler" and installed the recomended packages. 
  
Either i am stupid or there is no 64 bit cross compiler. But i do lack the motivation to investigate further. 
Again thank you for your valuable help and the provided binaries. 

Aside from the normal gcc-mingw32 package on debian (which contains the 64bit amd64-gcc cross compiler) you also need to install the mingw64 package which contains certain essential files that you won't be able to compile without.

Debian installs the compiler into /usr/amd64-mingw32msvc/bin by default, but I'm not clear on whether or not that's added to the system-wide PATH. You might need a line like this to be able to find it:

export PATH="/usr/amd64-mingw32msvc/bin:$PATH" 

Some pretty good, Debian specific instructions are provided here: http://tinc-vpn.org/examples/cross-compiling-64-bit-windows-binary/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu