|
From: Jeroen v. d. Z. <je...@fo...> - 2005-04-21 19:39:30
|
On Thursday 21 April 2005 01:40 pm, Joel VanderWerf wrote: > > I'm doing a fresh install of Mandrake 10.1 and Fox, and can't get Fox to > recognize the GL libs. > > I tried both configure without args and: > > ./configure --x-includes=/usr/X11R6/include/ --x-libraries=/usr/X11R6/lib > > since this is where the includes and libs are. > > In the latter case, I get: > > ... > checking for OpenGL support... > checking GL/gl.h usability... yes > checking GL/gl.h presence... yes > checking for GL/gl.h... yes > checking GL/glu.h usability... no > checking GL/glu.h presence... no > checking for GL/glu.h... no > ... > > > But during the compile: > > g++ -DHAVE_XSHM_H=1 -D_GNU_SOURCE -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 > -DHAVE_ZLIB_H=1 -DHAVE_XCURSOR_H=1 -Wall -W -Woverloaded-virtual > -Wformat -DHAVE_GL_H=1 -DSUN_OGL_NO_VERTEX_MACROS > -DHPOGL_SUPPRESS_FAST_API -I/usr/X11R6/include/ -o reswrap reswrap.o > -ldl -lpthread /usr/lib/libjpeg.so -lpng -lz -lm -lGL > /usr/bin/ld: cannot find -lGL > > > Now, I got around this by adding some symlinks to /usr/lib: > > libGL.so -> /usr/X11R6/lib/libGL.so* > libGLU.so.1 -> /usr/X11R6/lib/libGLU.so.1* > libGLw.a -> /usr/X11R6/lib/libGLw.a > libGLw.so -> /usr/X11R6/lib/libGLw.so* > > > Now it gets much farther, but when linking FXGLCone.o: > > FXGLCone.cpp: In member function `virtual void > FX::FXGLCone::drawshape(FX::FXGLViewer*)': > FXGLCone.cpp:109: error: `GLUquadric' undeclared (first use this function) > FXGLCone.cpp:109: error: (Each undeclared identifier is reported only > once for each function it appears in.) > FXGLCone.cpp:109: error: `quad' undeclared (first use this function) > FXGLCone.cpp:109: error: `gluNewQuadric' undeclared (first use this > function) > FXGLCone.cpp:110: error: `GLU_FILL' undeclared (first use this function) > FXGLCone.cpp:110: error: `gluQuadricDrawStyle' undeclared (first use > this function) > FXGLCone.cpp:117: error: `gluCylinder' undeclared (first use this function) > FXGLCone.cpp:118: error: `GLU_INSIDE' undeclared (first use this function) > FXGLCone.cpp:118: error: `gluQuadricOrientation' undeclared (first use > this function) > FXGLCone.cpp:119: error: `gluDisk' undeclared (first use this function) > FXGLCone.cpp:120: error: `gluDeleteQuadric' undeclared (first use this > function) > make[1]: *** [FXGLCone.lo] Error 1 > make[1]: Leaving directory `/home/vjoel/src/fox-1.2.16/src' > make: *** [all-recursive] Error 1 > > > Any suggestions? The problem is that GLU and GL are not in the same places; I've solved by by symlinking GLU to the same directory where GL is found [usr/lib]. Another approach is possible and that is to set two environment variables for the library location override: export LIBGLU=.... export LIBGL=... [You need to do this prior to running configure]. This is one thing where a LSB adherence would have been nice..... Hope this helps, Jeroen |