LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-12-2004, 04:56 PM   #1
sopor
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
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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:
http://www.gantless.com/computer.html#opengl

Glut stands for 'OpenGL Utility Toolkit'
Here is a site on installing glut if you don't have it.
http://www.lighthouse3d.com/opengl/glut/

Try using the find command to locate a directory called glut.
find / -type d -name glut
 
Old 11-12-2004, 06:24 PM   #3
sopor
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 ${INCLUDE_DIR}/GL
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."
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
sopor
LQ Newbie
 
Registered: Nov 2004
Location: San Marcos
Distribution: RedHat 9
Posts: 3

Original Poster
Rep: Reputation: 0
update

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:

./testgl
No OpenGL support on this system

I have the NVIDIA-Linux-x86-1.0-6111-pkg1.run 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.
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration