[Haskell-cafe] Installation of GLUT package

Paul L ninegua at gmail.com
Sat Sep 8 22:45:13 EDT 2007

I believe it's caused by the different versions of GLUT you have.

On 9/8/07, Ronald Guida <ronguida at mindspring.com> wrote:
> [...]
> Loading package OpenGL-2.2.1 ... linking ... done.
> Loading package GLUT-2.1.1 ... linking ... done.

The above message was after you have installed GLUT-2.0, but GHC was
still loading GLUT-2.1.1. The later errors were caused by your forced
copy of 2.0 lib over the default 2.1.1.

I suggest you get the cabal version of latest GLUT, which is 2.1.1,
and build it from source. I did the same on Linux some time ago, and I
was able to use freeGLUT and openGLUT as a result.

But again, why stuck with GLUT? Now there is at least one alternative,
GLFW (http://glfw.sourceforge.net) a cross-platform framework for
OpenGL applications, for which I recently wrote a Haskell interface,
downloadable at http://www.haskell.org/soe/software1.htm. It's
certainly experimental though. The GLFW C library itself is well
documented, but the Haskell module still isn't. The only example so
far is the soe.hs in the SOE package.

More information about the Haskell-Cafe mailing list