LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-26-2003, 09:42 AM   #1
FlatZ28
LQ Newbie
 
Registered: Aug 2003
Posts: 11

Rep: Reputation: 0
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 $@
 
Old 09-26-2003, 10:53 AM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
glut comes with mesa, the tar gz should be somewhere on that page.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
glut BrandonTurner Linux - Software 5 08-21-2004 03:46 AM
Why do you use GLUT? The_Nerd Programming 2 07-13-2004 08:30 AM
mesa glut libraries adhara Linux - Software 6 05-08-2004 04:45 AM
Glut 3.7 login365 Linux - Software 7 11-01-2003 04:56 AM
Glut???? FXRS Linux - Software 5 07-23-2003 07:18 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration