On Tue, Jan 28, 2014, Ruben Van Boxem wrote: > 2014-01-28 Ruben Van Boxem <[email protected]> > > > 2014-01-22 <[email protected]> > > > > Hello, > >> greate work with Mingw-w64. Can you tell me how to compile under Windows > >> 32bit some file for Linux (to be running on Linux)? Can I do that with your > >> project or files? > >> Thank you so much for your time and support. > >> > > > > No, that's not what MinGW-w64 is about. Your question is also a lot less > > trivial than you make it sound. Each linux distribution is different from > > the next, and your results won't be so portable as you'd hope them to be. > > > > I strongly suggest either distributing your source, so that distro package > > maintainers build it (eventually), or set up VMs that run the distro's you > > want to build binaries for, and build them directly on the target OS. > > > > Barring that, I did come across a Windows x64 to Linux 32-bit > > cross-compiler. I have not tried nor tested it in any way, so you're on > > your own: > > > > http://code.google.com/p/mingw-and-ndk/downloads/detail?name=x86_64-w64-mingw32-linux-i686-glibc2.7.tar.xz&can=2&q= > > > > Scratch this, it is not a Linux targetting compiler. This is a > Linux->Windows cross-compiler. >
I know that there is one somewhere and I know of at least two companies which do that. As you pointed out there are going to be differences between distributions but with the right glibc around, it should be doable and if a distribution in particular is targetted, re-using its glibc(-dev) package should be enough to build everything else. -- Adrien Nader ------------------------------------------------------------------------------ WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
