[HOpenGL] Debian&HOpenGL, undefined symbol: glPixelStorei

Marc A. Ziegert coeus at gmx.de
Wed Oct 29 12:21:25 EST 2003


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
> > 
> > 
> 



More information about the HOpenGL mailing list