LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 12-18-2003, 07:21 PM   #1
Ross Clement
Member
 
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171

Rep: Reputation: 30
Compiling glut applications in Fedora


Hi. I've just (after some trouble) managed to fix Fedora (beta test 3) to compile glut programs. Looking through the forums, I can't see much in the way of simple instructions of how to do this. So, I'm posting here in the (vain?) belief that my experience may be useful to someone, somewhere, sometime.

The glut library that comes with Fedora (and redhat 9) is broken in some vague way or form. E.g. see

https://bugzilla.redhat.com/bugzilla...buglist=107228

I was trying to compile a glut "hello world" application from a book, and it gave me all sorts of unknown symbols. This is what I did to fix it.

I downloaded a fedora src rpm for freeglut. This can be found under "Andy Piper's RPMs for fedora" (or similar link text) on the page:

http://freeglut.sourceforge.net/

Note that Andy Piper posted a comment to the bugzilla page referenced above.

I then rebuilt this src rpm with rpmbuild --rebuild

I then went to /usr/src/redhat/RPMS/i386, found the three rpms that I'd built, and tried to install them. I had to rpm -e five existing packages before I could manage this -- the glut that had come with fedora, and the glut-devel, freeglut, and freeglut-devel packages that I had installed with synaptic. I also had to uninstall the celestia package that I'd installed using synaptic. After that, I could install the new rpms fine.

Then, I went back to my "hello world" -like glut program, and it compiles and runs perfectly.

There are some problems. E.g. I tried to reinstall celestia, and it wanted to upgrade glut again. I'm not sure if this is a good thing to do, so am reinstalling celestia from .tar.gz, ignoring the rpm altogether.

Cheers,

Ross-c
 
Old 12-19-2003, 10:15 PM   #2
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Hey! This info is GOLD to me! Thank you I thought the OGL tutorials and book I have were wrong or for some esoteric reason would not allow me to compile glut test code! Thanks, buddy!
 
Old 12-21-2003, 07:42 AM   #3
Ross Clement
Member
 
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171

Original Poster
Rep: Reputation: 30
Hi. Good to hear that the info was useful. But, I was intending to follow up after a while. It seems that the method that I suggested (playing around with rpms) is not the best. Synaptic caused me quite some grief as it believed that packages were not installed, etc. It also thought that my installation of freeglut was 'broken', and kept annoying me with this 'fact'. Now, I'd recommend that anybody 'fixing' glut on fedora completely bypass rpm/apt-get/synaptic, and just install .tar.gz. This may require resinstallation whenever the 'installed' glut is updated, but should (?) allow smooth usage of package management otherwise.

Cheers,

Ross-c
 
Old 12-21-2003, 01:25 PM   #4
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
As a workaround I was thinking (and actually did) to let apt-get/synaptic install what it believes your system needs. If when installing from the .tar.gz packages you set the --prefix=/usr ./configure flag, then all the files within the installed packages will be overwritten, hence you have a healthy rpm database, but with the updated/correct binaries.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling applications into the kernel? lrt2003 Linux - General 3 05-13-2004 11:32 AM
mesa, glut and compiling opengl adhara Programming 3 05-08-2004 06:14 AM
compiling glut? (need help with libMesa) demitasse Linux - Games 2 12-14-2003 12:01 PM
Compiling a simple Mesa/GLUT program Bojdom Linux - Software 2 02-02-2003 05:19 PM
Compiling glut ChimpFace9000 Programming 2 06-01-2002 03:22 PM


All times are GMT -5. The time now is 10:59 PM.

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