LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-14-2004, 10:40 PM   #1
6u4nYu
LQ Newbie
 
Registered: Dec 2004
Posts: 18

Rep: Reputation: 0
how to install GLUT


I'm working on OpenGL programs and I need to install GLUT 3.6 to compile and run my programs. What are the steps to install GLUT
 
Old 12-15-2004, 06:36 AM   #2
Onthefly
Member
 
Registered: Aug 2003
Location: Germany
Distribution: Mandrake 9.1
Posts: 36

Rep: Reputation: 15
Depending on your Linux distribution (Suse, Mandrake Redhat etc.), you should have the necessary installation files on the installation disk. Use the software installation tools from kde or others or do it in a shell. In principle the glut is only a library.
the other question is, your are sure it is not already installed? Just try in the XF86free-4 file to edit the line in:
load "GLcore"
in the Module section and see what happens.
Good luck
Lars

P.S. What graphic card you have? The nvidia-card driver has it already included.
 
Old 12-15-2004, 06:40 AM   #3
Onthefly
Member
 
Registered: Aug 2003
Location: Germany
Distribution: Mandrake 9.1
Posts: 36

Rep: Reputation: 15
Okay, I checked my software (I am openGL program user ;-))
Here the libary describtion (Mandrake 10.0):
Name: glut
Version:3.7-12
Größe: 212 KB

Zusammenfassung: GL Utility Toolkit (GLUT)

Beschreibung: GL Utility Toolkit (GLUT) is a 3-D graphics library which uses the OpenGL API.

Dateien:
?/usr/lib/libglut.so.3
?/usr/lib/libglut.so.3.7
Have fun
Lars
 
Old 12-15-2004, 09:41 AM   #4
6u4nYu
LQ Newbie
 
Registered: Dec 2004
Posts: 18

Original Poster
Rep: Reputation: 0
I have a Nvidia 128MB GeForce FX 5600 video card
 
Old 12-15-2004, 09:47 AM   #5
6u4nYu
LQ Newbie
 
Registered: Dec 2004
Posts: 18

Original Poster
Rep: Reputation: 0
where is XF86Free-4 file located
 
Old 12-15-2004, 10:19 AM   #6
6u4nYu
LQ Newbie
 
Registered: Dec 2004
Posts: 18

Original Poster
Rep: Reputation: 0
Okay, I added "Load GLcore" on the xorg.conf file and it wouldn't compile my opengl programs. what should I do to fix this problem
 
Old 12-15-2004, 10:47 AM   #7
Onthefly
Member
 
Registered: Aug 2003
Location: Germany
Distribution: Mandrake 9.1
Posts: 36

Rep: Reputation: 15
okay, go to sourceforg.net search for glut. Will look like this:
Project Name
Description
Files
Activity %


UNC Python Tools
A collection of Python extension modules including: a simple wrapper for OpenGL, GLUT, and GLU, a wrapper for the National Instruments NI-DAQ library, a GNU-readline work-alike for Windows written in Python, and more.

94.06%


freeglut
A free OpenGL utility toolkit, the open-sourced alternative to the GLUT library.

92.35%


GLUI User Interface Library
GLUI is a GLUT-based C++ user interface library which provides controls such as buttons, checkboxes, radio buttons, and spinners to OpenGL applications. It is window-system independent, using GLUT or FreeGLUT.

80.98%

go and download that freeglut for your distribution.
Then go to th nvidia homegage and load down the driver for your card. Its an selfexplanatory shellscript together with an Readme.txt.
Install both and enoy opengl.

Good luck
Lars

P.s. okay you found the correct file for editing.

Last edited by Onthefly; 12-15-2004 at 10:49 AM.
 
Old 12-15-2004, 11:58 AM   #8
6u4nYu
LQ Newbie
 
Registered: Dec 2004
Posts: 18

Original Poster
Rep: Reputation: 0
I'm on sourceforge.net and typed in "GLUT". do I have to download all of them or one of them
 
Old 12-16-2004, 02:11 AM   #9
Onthefly
Member
 
Registered: Aug 2003
Location: Germany
Distribution: Mandrake 9.1
Posts: 36

Rep: Reputation: 15
Only the:
freeglut
A free OpenGL utility toolkit, the open-sourced alternative to the GLUT library.
then follow the link right for download. There will be several files for the different distributions. Take that one that fits,
Or you take the source code and compile yourself.
Lars
 
Old 12-16-2004, 03:29 AM   #10
Onthefly
Member
 
Registered: Aug 2003
Location: Germany
Distribution: Mandrake 9.1
Posts: 36

Rep: Reputation: 15
uups, found another:
http://www.opengl.org/resources/libraries/glut.html

here you find what you need.
Lars
 
Old 12-16-2004, 02:31 PM   #11
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Nvidia - Glut Howto (works for me)
 
Old 12-16-2004, 10:23 PM   #12
tin can
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Rep: Reputation: 0
If your trying to write code with opengl/glut, first make sure you have all the neccessary libraries, and header files (should be under /usr/include/GL). If your compiling your software through gcc to use the -lGL -lGLU to include glut, and opengl.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
glut BrandonTurner Linux - Software 5 08-21-2004 03:46 AM
Glut 3.7 login365 Linux - Software 7 11-01-2003 04:56 AM
Glut - What/How to Install & What to Attach/Include drdroid Programming 6 10-19-2003 05:19 PM
Glut???? FXRS Linux - Software 5 07-23-2003 07:18 AM
glut install help saturn_vk Linux - General 0 04-26-2003 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:47 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