Home Forums HCL Reviews Tutorials Articles Register Search Today's Posts Mark Forums Read
 LinuxQuestions.org Installing Mesa on Linux ?
 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

 01-21-2003, 10:54 PM #1 TheGr81 Member   Registered: Jan 2003 Posts: 38 Rep: 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  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: 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.  01-22-2003, 06:07 PM #3 trickykid Guru Registered: Jan 2001 Posts: 24,133 Rep: moved: more suitable in the software forum.  01-22-2003, 07:06 PM #4 TheGr81 Member Registered: Jan 2003 Posts: 38 Original Poster Rep: 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?  01-22-2003, 07:59 PM #5 iceman47 Senior Member Registered: Oct 2002 Location: Belgium Distribution: Debian, Free/OpenBSD Posts: 1,123 Rep: http://www.rpmfind.net/linux/rpm2htm...mit=Search+... here you go  01-22-2003, 08:26 PM #6 TheGr81 Member Registered: Jan 2003 Posts: 38 Original Poster Rep: but will the rpm for Redhat 7.2 work? I don't see anything for 8.0  01-22-2003, 08:28 PM #7 TheGr81 Member Registered: Jan 2003 Posts: 38 Original Poster Rep: Also, that is a very old version of Mesa. The newest is 5.0, that only finds version 3.  01-22-2003, 10:07 PM #8 TheGr81 Member Registered: Jan 2003 Posts: 38 Original Poster Rep: 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?
 01-22-2003, 10:24 PM #9 TheGr81 Member   Registered: Jan 2003 Posts: 38 Original Poster Rep: 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!!!!
 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: 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?
 01-23-2003, 01:23 PM #11 TheGr81 Member   Registered: Jan 2003 Posts: 38 Original Poster Rep: Yup, I want to use MESA but that rpm is of a very old version
 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: How about version 4.01 ?