[HOpenGL] GLUT not found

Sven Panne Sven.Panne@informatik.uni-muenchen.de
Sun, 16 Mar 2003 18:18:35 +0100


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.