OpenGL failing with Mac Intel 6.6 distribution

Gregory Wright gwright at
Sat Oct 28 13:14:18 EDT 2006

Hi Deborah,

On Oct 27, 2006, at 5:21 PM, Deborah Goldsmith wrote:

> I'm attempting to build frag on Mac OS X Intel with the 6.6  
> distribution, and I hit the following:
> /tmp/ghc25850_0/ghc25850_0.hc:5:22:
>      error: HsOpenGL.h: No such file or directory
> A comparison of the C include directories for 6.6 and a recent 6.5  
> build gives:
> $ diff -r /usr/local/lib/ghc-6.5.20061008/include/ /usr/local/lib/ 
> ghc-6.6/include/
> Only in /usr/local/lib/ghc-6.5.20061008/include/: HsOpenGL.h
> Only in /usr/local/lib/ghc-6.5.20061008/include/: HsOpenGLExt.h
> Only in /usr/local/lib/ghc-6.5.20061008/include/: HsOpenGLTypes.h
> Only in /usr/local/lib/ghc-6.6/include/: HsReadline.h
> Only in /usr/local/lib/ghc-6.6/include/: HsReadlineConfig.h
> diff -r /usr/local/lib/ghc-6.5.20061008/include/ghcautoconf.h /usr/ 
> local/lib/ghc-6.6/include/ghcautoconf.h
> 130c130
> < #define HAVE_LIBIBERTY 1
> ---
> > /* #undef HAVE_LIBIBERTY */
> Is the fact that HSOpenGL*.h is missing in 6.6 expected?

On my OS X ppc/ghc-6.6 system, I found HsOpenGL.h in


(this is ghc-6.6 built from source with MacPorts.)  My guess is that  
compiler was built without OpenGL support.  If you downloaded a binary
compiler, you're stuck until someone adds it. Look at the output of

	ghc-pkg list

Do you see GLUT-* andfOpenGL-* ? If not, you do not have OpenGL support.

If you built your ghc from source, make sure you have enabled hopengl  
that the opengl
libraries are found (save the build logs and look in the  
configuration sections).

best wishes,

> Thanks,
> Deborah
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at

More information about the Glasgow-haskell-users mailing list