Re: Installing GLUT package on Win32 -- abandoned

Ronald Guida <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
Good news:

On the haskell-cafe mailing list, Paul L wrote:
 > 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.

I abandoned GLUT and looked at GLFW.  I had similar problems getting
GLFW to work with GHC and GHCi.  After a bunch of hacking, I got GLFW
to work for me.

I have to invoke GHCi with the command line [1] and I have to invoke
the compiler like [2], but hey, it works :)

 [1] "ghci <myfile.hs> glfw_hack.o -lopengl32 -lglu32"
 [2] "ghc --make <myfile.hs> glfw_hack.o -lopengl32 -lglu32"

-- Ron
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.