[HOpenGL] Debian&HOpenGL, undefined symbol: glPixelStorei

Marc A. Ziegert coeus at gmx.de
Wed Oct 29 12:31:07 EST 2003


whops... sorry. only

ghci -package OpenGL

works, but not 

ghci -package GLUT

but maybe that is only my problem because of installing HOpenGL-1.05 over ghc-6.0.1 (which already contains OpenGL)



Am Mittwoch, 29. Oktober 2003 12:21 schrieb Marc A. Ziegert:
> found the solution:
> 
> in 
> /usr/lib/ghc-6.0.1/package.conf
> the package named "OpenGL" contains 
> 
>      extra_ld_opts =
>        ["",
> 	"-lGLU",
> 	"-lGL",
> 
> but it has to contain
> 
>      extra_ld_opts =
>        ["",
> 	"-lGL",
> 	"-lGLU",
> 
> so that libGL.so will be loaded before libGLU.so.
> with this patch it works. :)
> 
> - marc
> 
> 
> 
> 
> Am Dienstag, 28. Oktober 2003 20:33 schrieb Marc A. Ziegert:
> > i tried it. i have the same problem. (using gentoo linux)
> > 
> > ghci -lGL -lGLU
> > works, but
> > ghci  -lGLU -lGL
> > doesn't.
> > 
> > ghc -lGL -lGLU -package GLUT
> > tries to load the package first.
> > 
> > 
> > 
> > Sven Panne:
> > 
> > strace -e trace=file ghci  -lGL -lGLU -package GLUT &>strace
> > strace -e trace=file ghci  -lGL -lGLU -package GLUT >strace.stdout 2>strace.stderr
> > 
> > 
> > 
> > 
> > Am Dienstag, 28. Oktober 2003 14:57 schrieb Ville Tirronen:
> > > > try one of these 
> > > > ghc -package GLUT -package OpenGL Planet.hs -lglut
> > > > ghc -package GLUT -package OpenGL Planet.hs -lglut -lGL -lGLU
> > > > 
> > > > /usr/*/lib/libGL.so
> > > > should contain glPixelStorei
> > > 
> > > No go I'm afraid. ghci still has the same complaint, but
> > > that is not really such a big deal, since I can compile
> > > programs.
> > > 
> > > Thank you,
> > > 
> > > Ville Tirronen
> > > 
> > > _______________________________________________
> > > HOpenGL mailing list
> > > HOpenGL at haskell.org
> > > http://www.haskell.org/mailman/listinfo/hopengl
> > > 
> > > 
> > 
> 
> _______________________________________________
> HOpenGL mailing list
> HOpenGL at haskell.org
> http://www.haskell.org/mailman/listinfo/hopengl
> 
> 



More information about the HOpenGL mailing list