Hello everybody. I'm new here, searching for knowledgable forum to post my linux problems. This is the third forum I try to get help for the following problem.
I try to compile a simple GL-program using glut. But even though the libraries should be installed, the linker cannot find them. Here's an illustration:
Code:
$ gcc simplegl.o -L /usr/X11R6/lib/ -lGL -lGLU -lglut -o simplegl
/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status
$ locate libglut
/usr/X11R6/lib/libglut.so.3
/usr/X11R6/lib/libglut.so.3.7.1
# ldconfig -p | grep glut
libglut.so.3 (libc6) => /usr/X11R6/lib/libglut.so.3
As you can see, libglut exits, but the linker still claims it can't find it. Why might that be?
Some extra, possibly relevant, information:
Dist: Mandrake 10.0
The glut libs were installed from the distribution. However, the header files were not. So these are copied from: [cannot post url before five posts] www_ibiblio_org/pub/packages/development/graphics/glut/glut-3.5.tar.gz
I hope someone can help me, since all simple 'getting started' openGL examples seem to be using glut.