[Haskell-cafe] Unix emulation

Erik de Castro Lopo mle+hs at mega-nerd.com
Mon Aug 23 01:12:56 EDT 2010


Andrew Coppin wrote:

> I too was going to have a go at this. I had a Windows VM (so I don't 
> ruin my *real* Windows box) and I was going to set up all the junk which 
> is apparently necessary to make C bindings build. And then I was going 
> to build all the libraries I want but can't have, package them up into 
> nice little installers with NSIS, and make the binary installers 
> available for each version of the Haskell Platform.
> 
> But, as I say, I utterly failed to make MinGW and MSYS actually work. I 
> never got as far as installing HP at all!

I'm going to be a bit of a heretic here and suggest that you attack
this problem from the other end. How you ask?

Install Debian Testing/Unstable with Wine in a VM and cross compile
to Windows.

For C libraries that originate on Unix, cross compiling them on
from Linux -> Windows is often easier than getting them to compile
on Windows.

For the Haskell stuff, install the windows version of GHC using
Wine (I messed with this a bit and it worked like a charm).

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the Haskell-Cafe mailing list