LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-21-2003, 10:54 PM   #1
TheGr81
Member
 
Registered: Jan 2003
Posts: 38

Rep: Reputation: 15
Help with Computer Graphics class please!!


Hey guys,
This is my first time posting on this forum and I am kinda desperate. I am taking a computer graphics class in college and we are using OpenGL. We are supposed to install Mesa in Linux if we want to work on our project at home which is what I am doing. Here is what I have accomplished so far

*I downloaded Mesalib-5.0.tar.gz and Mesademos-5.0.tar.gz from the Mesa website and extracted everything into a single directory.
*I ran make linux-86 to compile the libraries
*I copied over some of the libarary files to my lib directory as stated in the readme.x11 file in the docs directory that came with Mesa

Now I am trying to run a sample program that we were given and I am having no luck. When I type make, the program compiles fine, but when I try to run it a window pops up that says cannot find the program teatex_withmenu which is the name of the program I am trying to run. My make file is as follows...

INCLUDE_DIR = -I/usr/include/X11 -I/Marc/classwork/ceg477/Mesa-5.0 -I./ -I/usr/X11R6/include
LIBRARY_DIR = -L/usr/lib -L/Marc/classwork/ceg477/Mesa-5.0 -L/usr/X11R6/lib
LIBRARIES = -lglut -lGLw -lGLU -lGL -lX11 -lXext -lXm -lXt -lXmu -lm
COMPILER_FLAGS = -O -w
COMPILER = g++

OBJ_FILES = teatex_withMenu.o
EXEC = teatex_withMenu

$(EXEC): $(OBJ_FILES)
$(COMPILER) $(COMPILER_FLAGS) -o $(EXEC) $(OBJ_FILES) \
$(LIBRARY_DIR) $(LIBRARIES)

teatex_withMenu.o : teatex_withMenu.c
$(COMPILER) $(COMPILER_FLAGS) $(INCLUDE_DIR) -c teatex_withMenu.c

clean:
\rm -f *.o *~ core

I was getting errors about bad symbols before I aded a couple more paths to the lib and include constants. Does anyone have any suggestions for me?? We have to fool with a bunch of sample programs and make some small changes to them before thursday and I can't even get them to run I would greatly appreciate any help.

Marc
 
Old 01-22-2003, 05:50 PM   #2
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
What distribution are you using? Can't you just install binary packages (RPM, debs)? What does the INSTALL file included with the paqckage say? Don't you have to 'make' and then 'make install' rather than manually installing things?

Shooting some suggestions from the hip, as you've not much time.
 
Old 01-22-2003, 06:07 PM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
moved: more suitable in the software forum.
 
Old 01-22-2003, 07:06 PM   #4
TheGr81
Member
 
Registered: Jan 2003
Posts: 38

Original Poster
Rep: Reputation: 15
I am using RedHat 8.0. I assume I could use binary files if I knew where to get them. All I found on the Mesa website was the archives. Any more suggestions?
 
Old 01-22-2003, 07:59 PM   #5
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
http://www.rpmfind.net/linux/rpm2htm...mit=Search+...
here you go
 
Old 01-22-2003, 08:26 PM   #6
TheGr81
Member
 
Registered: Jan 2003
Posts: 38

Original Poster
Rep: Reputation: 15
but will the rpm for Redhat 7.2 work? I don't see anything for 8.0
 
Old 01-22-2003, 08:28 PM   #7
TheGr81
Member
 
Registered: Jan 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Also, that is a very old version of Mesa. The newest is 5.0, that only finds version 3.
 
Old 01-22-2003, 10:07 PM   #8
TheGr81
Member
 
Registered: Jan 2003
Posts: 38

Original Poster
Rep: Reputation: 15
OK... I completely started the installation over and used the "new-style" method of installing as stated in the INSTALL file. I ran ./configure then make, then make install. I also installed the oss-opengl-glu libraries using an rpm. Now, when I try to compile the sample program that was given to us by our teacher, I get an error as follows...
[root@rs236129 sample]# make
gcc -O -w -o teatex_withMenu teatex_withMenu.o \
-L/usr/lib -L. -lglut -lGLw -lGLU -lGL -lX11 -lXext -lXm -lXt -lXmu -lm
./libglut.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [teatex_withMenu] Error 1

The make file I am using now is as follows....
INCLUDE_DIR = -I/usr/include/X11 -I.
LIBRARY_DIR = -L/usr/lib -L.
LIBRARIES = -lglut -lGLw -lGLU -lGL -lX11 -lXext -lXm -lXt -lXmu -lm
COMPILER_FLAGS = -O -w
COMPILER = gcc

OBJ_FILES = teatex_withMenu.o
EXEC = teatex_withMenu

$(EXEC): $(OBJ_FILES)
$(COMPILER) $(COMPILER_FLAGS) -o $(EXEC) $(OBJ_FILES) \
$(LIBRARY_DIR) $(LIBRARIES)

teatex_withMenu.o : teatex_withMenu.c
$(COMPILER) $(COMPILER_FLAGS) $(INCLUDE_DIR) -c teatex_withMenu.c

clean:
\rm -f *.o *~ core

We were given the libglut.a file which is producing the error with the sample program. Maybe I should try getting rid of it? Any other ideas?
 
Old 01-22-2003, 10:24 PM   #9
TheGr81
Member
 
Registered: Jan 2003
Posts: 38

Original Poster
Rep: Reputation: 15
I deleted the libglut.a file that was given to us with the sample program and that fixed the error I was getting but I got another one saying that -lx11 could not be found so I added another path to the include and library strings which fixed that error. Now I am back to the same thing I was getting before. Everything compiles fine when I type make but when I double-click the executable in my file browser a window pops up titled "konqueror - sorry" and it says "Couldn't find the program teatex_Withmenu" and then it has an OK button. teatex_Withmenu is the same name as the executable file. What in god's name is going on here???? Anyone help please!!!!
 
Old 01-23-2003, 03:03 AM   #10
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Please use a binary.

Donload the RPM files from RPMFind and install that.

rpm -i Mesa-3.4.1-1.386.rpm

If you have problems compiling a large package like Mesa then it's probably a version problem which will have you running in circles until Thursady next year.

Your priority is to use Mesa, not tweak it, right?
 
Old 01-23-2003, 01:23 PM   #11
TheGr81
Member
 
Registered: Jan 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Yup, I want to use MESA but that rpm is of a very old version
 
Old 01-23-2003, 01:58 PM   #12
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
How about version 4.01 ?
 
  


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
Conficts with XFree86-Mesa-libGL-4.3.0-2 while installing ati driver inward_eye Linux - Software 2 08-24-2003 05:10 PM
Installing Mesa & Mesa-demos... bozotix Linux - Software 2 05-09-2002 12:55 AM
installing mesa 4.x.x csDraco_ Slackware 3 04-14-2002 10:45 AM
Installing and running Mesa nonLinuxGuru Linux - General 0 03-19-2002 04:40 AM
Problems installing Mesa 3.4.2 on RH-7.1 bobthebat Linux - Newbie 4 07-09-2001 11:27 PM


All times are GMT -5. The time now is 11:30 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration