PDA

View Full Version : compiling simple cube demo



05-20-2003, 09:35 PM
I got the cube demo and makefile off of this website. I tried to compile, but get this error:
gcc -Wall -I/usr/X11R6/include/ -o cube -L/usr/X11R6/lib cube.o -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm
/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status
make: *** [cube] Error 1

How do I resolve this -lglut problem?

errno
05-20-2003, 10:56 PM
you need to install glut ...
the package is available in every linux distro.