Posts Tagged ‘haskell freeglut programming graphics’

Haskell and freeglut at last!

Monday, April 14th, 2008

It took for-freaking-evar, but I finally got freeglut and Haskell to play nice with each other.

Here’s how I got it working.

The Tools

I’m not giving step-by-step, but rather a general method plus some details where they’re important. It actually became relatively easy once I switched from Cygwin to MSYS for my build environment. So the first thing to do is to go set up MinGW and MSYS. Their documentation will tell you how to set that up better than I could, so I’ll refer you to that. We need some extra libraries, too, so grab the supplementary tools while you’re there. I got the ‘Current Release’ version of both MSYS and the supplementaries, not the technology previews.

(more…)