Re: GLUT not found

Sven Panne <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
Milos Hasan wrote:
 > [...] It seems that "make install" does not copy the GLUT files into the
 > GHC directory structure at all.

Alas, that's true: It is a known bug in HOpenGL 1.04.  :-(

 > What to do?

Simply copy all GLUT interface files to your GHC's import subdirectory.
This can e.g. be done by the following one-liner:

    cd HOpenGL ; ( tar cf - `find GLUT -name "*hi"` ) | ( cd `lib/find-ghc-libdir`/imports ; tar xvf - )

Hmmm, and I've just seen that HOpenGL.conf uses "GL/glu.h" for c_includes,
but GL/glut.h might be a better idea...   *sigh*

Cheers,
    S.
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.