Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-12-2004, 04:56 PM   #1
LQ Newbie
Registered: Nov 2004
Location: San Marcos
Distribution: RedHat 9
Posts: 3

Rep: Reputation: 0
programming opengl redhat9

My goal is to be able to compile c++ programs using opengl on redhat9.

I have only been using linux for a few months, writing programs for my data structures class.
I want to eventually get rid of my windows computer and move to linux, this is a tough move.

I am trying to setup glux-3.7 and in the linux readme file it reads:

Makefile -- Makefile required to build ELF library, belongs in the $GLUT_HOME/lib/glut/. directory.

what does "$GLUT_HOME/lib/glut/." directory mean?
is there some file that contains a "path" list?

later it reads:

Change into $GLUT_HOME/lib/glut/. and make a backup copy of
the Makefile. Now, take the Makefile out of the archive and
replace the old one.

Does this mean goto that directory? If so, where is it? Do I need to set it up?
Old 11-12-2004, 05:35 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
Are you using Mesa for OpenGL?

Mesa should now be installed. Change to the glut subdirectory under the directory where Mesa was unpacked. This directory is referred to as $GLUT_HOME in the readme files and such.

This is froma the website:

Glut stands for 'OpenGL Utility Toolkit'
Here is a site on installing glut if you don't have it.

Try using the find command to locate a directory called glut.
find / -type d -name glut
Old 11-12-2004, 06:24 PM   #3
LQ Newbie
Registered: Nov 2004
Location: San Marcos
Distribution: RedHat 9
Posts: 3

Original Poster
Rep: Reputation: 0
ok I installed mesa but I got the following error:

mkdir ${INCLUDE_DIR}
mkdir: cannot create directory `/usr/local/include': File exists
mkdir ${LIB_DIR}
mkdir: cannot create directory `/usr/local/lib': File exists
cp -f ${TOP}/include/GL/*.h ${INCLUDE_DIR}/GL
cp: cannot stat `./include/GL/*.h': No such file or directory
cp -fd ${TOP}/lib*/lib* ${LIB_DIR}
cp: cannot stat `./lib*/lib*': No such file or directory

echo "Done."

Does this mean it did not install correctly?

If $GLUT_HOME is the Mesa-6.2 directory, where should I move these files?
Old 11-13-2004, 12:05 AM   #4
LQ Newbie
Registered: Nov 2004
Location: San Marcos
Distribution: RedHat 9
Posts: 3

Original Poster
Rep: Reputation: 0

Well, I decided to try the SDL and that seems to have installed. However, when I run the testgl program, this is the response I get:

No OpenGL support on this system

I have the nvidia driver installed for my Geforce FX5200.
I downloaded the nvidia kernel and glx, glx needs the kernel to install, and the kernel file...:

rpm -ivh NVIDIA_kernel-1.0-2880.rh72up.i386.rpm
error: Failed dependencies:
kernel = 2.4.7-10 is needed by NVIDIA_kernel-1.0-2880.rh72up

Am I using the wrong NVIDIA_kernel file? I have apt-get installed, hehe, not sure if that helps, but I installed some stuff with it easily. Also, I have not compiled my redhat9 kernel from source as I don't understand why this is done, if that is causing a problem. Thanks for any help, I want to do some graphic programming.


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
opengl programming in Mandrake 10.1 vivinuthappa Programming 2 08-12-2005 06:11 AM
opengl programming question jacksmash Programming 1 11-13-2004 07:54 PM
OpenGL programming koyi Programming 10 04-22-2004 07:28 PM
OpenGL programming help TheGr81 Linux - General 1 10-02-2003 03:55 PM
OpenGL Programming Question EviLBoX Programming 2 10-18-2002 11:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:52 PM.

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