-
openGL glut problem
I am new to linux and openGL programming. i copied an example program and tried compiling it. But there's an error whle linking... Can anyone please help?
Code:
[narayana@localhost OpenGL]$ make quad
g++ -lpthread -lglut -lGLU -lGL -lm -lXi -lX11 -lXmu -lXext quad.cc -o quad
/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status
make: *** [quad] Error 1
Here're the contents of ld.so.conf:
Code:
[narayana@localhost OpenGL]$ cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/X11R6/lib
/usr/lib/qt3/lib
/usr/lib/wine
/usr/i486-linux-libc5/lib
I find the following files in /usr/X11R6/lib
Code:
[narayana@localhost lib]$ ls /usr/X11R6/lib/libglut*
/usr/X11R6/lib/libglut.la* /usr/X11R6/lib/libglut.so.3@
/usr/X11R6/lib/libglut.so@ /usr/X11R6/lib/libglut.so.3.7.1*
and /usr/X11R6/include/GL contains glut.h
:(
I'm using Mandriva LE 2005 and i installed glut etc from the CDs.
Please help.
-_-