LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 04-06-2001, 06:09 AM   #1
yogotie
Member
 
Registered: Mar 2001
Distribution: Slackware 9.0
Posts: 32

Rep: Reputation: 15

How do you install GLUT?
I downloaded it and I don't know what to do so that I can compile stuff that uses GLUT.

Thanks
 
Old 04-10-2001, 04:18 AM   #2
salukibob
LQ Newbie
 
Registered: Mar 2001
Location: South of England
Posts: 9

Rep: Reputation: 0
Installing GLUT

Bit of a tough one to answer this, as you did not specify what the file type is that you downloaded. However, you are likely to have downloaded a file somewhat like either:
GLUT-??.??.tar.gz
or
GLUT-??.??.rpm
or
GLUT-??.??.deb

if its a .deb, sorry can't help, never used it. If its rpm, then (i think) you just type "rpm -i GLUT-??.??.rpm" and it should install automatically. Pay attention to the output on the screen, because it will tell you where the binaries are installed. Type "man rpm" for more info.
If its a .tar.gz, then, type "tar -xvzf GLUT-??-??.tar.gz" and it will uncompress and unarchive into a directory of the same name as the .tar.gz file. So now you go into that directory - "cd GLUT-??.??" - and take a look at the files inside - "ls". What you will hopefully see is these important files:
README
configure
Makefile
and maybe
Install.sh
INSTALL

Its always best to read the README, and INSTALL (if there is one) which give info on software version and specifics on how to install. If there is a Install.sh, then just type "./Install.sh" or if theres a configure, type
"./configure" - lots of things will happen, then
"make" - lots more things will happen, then
"make install" - even more things will happen.
Again, pay attention of where the binaries are installed to.

Once its installed, other things that need glut, should compile okay.

Hopefully that should help you a little.

Cheers
salukibob
 
Old 04-10-2001, 10:38 AM   #3
yogotie
Member
 
Registered: Mar 2001
Distribution: Slackware 9.0
Posts: 32

Original Poster
Rep: Reputation: 15
glut.tar.gz

I used the tar.gz GLUT ran the configure, make, and make install. However, things did not compile with GLUT. So is it a problem where the libraries are not in the path and therefore it cannot be found?

The other thing is I got some error about dynamic linked libraries when I tried to run of the GLUT compile programs, there was some reference to ld.so.

Thanks again
 
Old 04-10-2001, 11:03 AM   #4
salukibob
LQ Newbie
 
Registered: Mar 2001
Location: South of England
Posts: 9

Rep: Reputation: 0
It sounds to me link Glut requires a dynamic library that the configure program cannot find. This is a problem because Glut will compile fine without the library it needs, but when you run a Glut program that requires a symbol or function from that library, it will crash or do something equally bad. That is what the ld.so error is. ld is trying to load into memory a library that isn't where you say it is.
Best thing I can suggest is to run configure again and look to see what libraries it is trying to link too. There should be an error here if the library is not there.
If there is an error, and it tells you which library you need, then just go on the net and look for that library. If there is no errors then you may need to go and look on the glut websites for it dependancies (i.e. what packages Glut needs to run) and get them and install them.
 
Old 05-05-2005, 08:17 AM   #5
joechos
LQ Newbie
 
Registered: May 2005
Posts: 1

Rep: Reputation: 0
If it's .deb (a debian package), open up a console window and cd to the dir where you have it and type dpkg --install glut*deb

I use the astriks to help ease the process due to the fact that most file names are quite long. If you prefer, you can type the whole name in.

If you're on a machine which doesn't support a foreign package; lets say a Debian and you are trying to use an rpm, you can get a nifty little program called alien to convert it to other package formats.

Last edited by joechos; 05-05-2005 at 08:19 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install GLUT 6u4nYu Linux - General 11 12-16-2004 10:23 PM
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
Glut 3.7 login365 Linux - Software 7 11-01-2003 04:56 AM
Glut???? FXRS Linux - Software 5 07-23-2003 07:18 AM


All times are GMT -5. The time now is 04:52 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration