trouble compiling OpenGL package with ghc 6.10.1 (undefined GLUT_BITMAP_8_BY_13 etc)

Conal Elliott conal at conal.net
Thu Nov 6 16:46:39 EST 2008


While building the GLUT package (GLUT-2.1.1.2) with ghc 6.10.1, I get the
following errors.  I recently compiled this same version successfully in
ghc-6.11.20081103.

Any idea what's gone wrong?

    [20 of 21] Compiling Graphics.UI.GLUT.Begin ( Graphics/UI/GLUT/Begin.hs,
dist/build/Graphics/UI/GLUT/Begin.o )
    [21 of 21] Compiling Graphics.UI.GLUT ( Graphics/UI/GLUT.hs,
dist/build/Graphics/UI/GLUT.o )
    cbits/HsGLUT.c: In function `hs_GLUT_marshalBitmapFont':
    cbits/HsGLUT.c:26:0:
         error: `GLUT_BITMAP_8_BY_13' undeclared (first use in this
function)
    cbits/HsGLUT.c:26:0:
         error: (Each undeclared identifier is reported only once
    cbits/HsGLUT.c:26:0:  error: for each function it appears in.)
    cbits/HsGLUT.c:27:0:
         error: `GLUT_BITMAP_9_BY_15' undeclared (first use in this
function)
    cbits/HsGLUT.c:28:0:
         error: `GLUT_BITMAP_TIMES_ROMAN_10' undeclared (first use in this
function)
    cbits/HsGLUT.c:29:0:
         error: `GLUT_BITMAP_TIMES_ROMAN_24' undeclared (first use in this
function)
    cbits/HsGLUT.c:30:0:
         error: `GLUT_BITMAP_HELVETICA_10' undeclared (first use in this
function)
    cbits/HsGLUT.c:31:0:
         error: `GLUT_BITMAP_HELVETICA_12' undeclared (first use in this
function)
    cbits/HsGLUT.c:32:0:
         error: `GLUT_BITMAP_HELVETICA_18' undeclared (first use in this
function)
    cbits/HsGLUT.c: In function `hs_GLUT_marshalStrokeFont':
    cbits/HsGLUT.c:41:0:
         error: `GLUT_STROKE_ROMAN' undeclared (first use in this function)
    cbits/HsGLUT.c:42:0:
         error: `GLUT_STROKE_MONO_ROMAN' undeclared (first use in this
function)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20081106/884286b9/attachment.htm


More information about the Glasgow-haskell-users mailing list