
Hello, I use Windows 2000/MingGW/MSYS and HOpenGL compiled OK, but when trying to compile a simple program, I got: ghc: can't find module `Graphics.UI.GLUT' (while processing "Hello.hs") It seems that "make install" does not copy the GLUT files into the GHC directory structure at all. What to do? Milos

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.

I wrote:
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. :-( [...] 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*
FYI: I've just uploaded a small patch which fixes both buglets: http://haskell.org/HOpenGL/releases/install.patch Cheers, S.
participants (2)
-
Milos Hasan
-
Sven Panne