[HOpenGL] WinXP, ghc-6.0.1, HOpenGL-1.05 .. problems

Sven Panne Sven.Panne at informatik.uni-muenchen.de
Sat Nov 15 18:24:34 EST 2003


C.Reinke wrote:
> - added GL/glut.h

Perhaps a patchlevel-only release would be the right thing. But I'm not sure
how I can include this file in it, it must be placed where GHC's MinGW C compiler
will find it...

> - applied HOpenGL-1.04 install patch

This should definitely go into pl1.

> - replaced evil hack with "ghc --print-libdir"

Hmmm, older GHCs don't have this option IIRC.

> - configure; make depend; make install 
> 
> again goes through, but this time there is a Graphics.UI.Glut
> (under HOpenGL, not in the main Graphics, btw).
> 
> so far so good, but trying to compile the examples in my old
> FunWorld July snapshot doesn't get very far at all:
> 
>   Compiling Main             ( Boids.hs, obj/Boids.o )
>   Linking ...
>   c:/ghc/ghc-6.0.1/libHOpenGL.a(GL_Marshal__1.o)(.text+0x28):ghc2444.hc:
>   undefined
>    reference to `__stginit_CString_'
>   c:/ghc/ghc-6.0.1/libHOpenGL.a(GL_Texturing__1.o)(.text+0x5a):ghc2844.hc:
>   undefin
>   ed reference to `__stginit_List_'
>   c:/ghc/ghc-6.0.1/libHOpenGL.a(GL_BasicTypes__1.o)(.text+0x1e):ghc2944.hc:
>   undefi
>   ned reference to `__stginit_Bits_'
>   make: *** [Boids] Error 1
> 
> Further suggestions?-)

Oh, well... The old libraries are a moving (and sometimes vanishing) target
nowadays. :-P Could you try the following patch and tell me if it works for you?

Cheers,
    S.


--- HOpenGL-1.04/lib/HOpenGL.conf.in.orig	2003-11-15 18:20:11.000000000 +0100
+++ HOpenGL-1.04/lib/HOpenGL.conf.in	2003-11-15 18:20:55.000000000 +0100
@@ -7,7 +7,7 @@
     extra_libraries = [],
     include_dirs    = [],
     c_includes      = [ "GL/glu.h" ],
-   package_deps    = [ "lang" ],
+   package_deps    = [ "haskell98", "lang" ],
     extra_ghc_opts  = [],
     extra_cc_opts   = [ @PKG_EXTRA_CC_OPTS@ ],
     extra_ld_opts   = [ @PKG_EXTRA_LD_OPTS@ ]



More information about the HOpenGL mailing list