GLUT libraries
Hey guys, when running my Makefile like so:
sean@NumeroUno:~/math168$ make xxxx
gcc xxxx.c -lglut -lGL -lGLU -lXmu -lX11 -lm -L/usr/X11R6/lib -o xxxx
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../../i386-slackware-linux/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status
make: *** [xxxx] Error 1
.. I get an error .. It can't find glut .. here's my Makefile, no problems with it, but can you guys tell he where and how I can get the GLUT libraries iinstalled? Thanks... btw I'm running slack 9.
# This sample Makefile allows you to make an OpenGL application
# whose source is exactly one .c file under linux.
# check the location of the X libraries on your implementation.
#
# To use this Makefile, you type:
#
# make xxxx
#
# where
# xxxx.c is the name of the file you wish to compile
#
# A binary named xxxx will be produced
# Libraries are assumed to be in the default search paths
# as are any required include files
CC = gcc
LDLIBS = -lglut -lGL -lGLU -lXmu -lX11 -lm -L/usr/X11R6/lib
.c:
$(CC) $@.c $(LDLIBS) -o $@
|