LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 04-03-2010, 03:32 PM   #1
Rodnower
Member
 
Registered: Mar 2010
Posts: 54

Rep: Reputation: 15
Problem with running Mesa demos


Hello,
I successfully installed Mesa with "yum install Mesa*" and downloaded MesaDemos-7.8.tar.gz archive.
Now I try follow instructions from "Mesa3d.org -> Download / Insall -> Compiling and Installing -> 1.5 Running the demos",
but in progs/demos there is only *.c files, when I try to compile them,
I get many similar errors like:
gears.c.text+0x54): undefined reference to `glShadeModel'

I guess that this is very noob question, and I understand that there is very simple solution, but I haven't any idea...
In beggining of the file there are all necessary #includes:
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <GL/glut.h>

So I have some questions:
Is there some Mesa forum on the web?
Is there some compiled demos?
Is there some site with well described examples of Mesa using?
What I need for compile those examples?

I have CentOS 5

Thank you for ahead.
 
Old 04-03-2010, 05:12 PM   #2
Rodnower
Member
 
Registered: Mar 2010
Posts: 54

Original Poster
Rep: Reputation: 15
So, like I understand, I need link some .so libraries. But how do I know which libraries I should to add?
Can anyone get me link to some page with simple explaining about using Mesa/OpenGL on Linux for begginers?

Last edited by Rodnower; 04-03-2010 at 05:13 PM.
 
Old 04-03-2010, 07:37 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# yum install mesa*
.. Then you do have the all the shared libraries. (.so)
.. The most was already present from your OS install.

But the above provides mesa-6.5, so I guess,
you will just need mesa demos version 6.5 .
Mesa 7.8 is a brand new thing, hardly used yet.

The 'CentOS 5.4' Mesa source code package, SRC RPM :
http://mirror.centos.org/centos/5.4/....7.el5.src.rpm
Please create a new empty directory ..
then you can unpack it with this command :
rpm2cpio mesa-6.5.1-7.7.el5.src.rpm | cpio -idmv

Good luck.
.....

Last edited by knudfl; 04-03-2010 at 07:39 PM.
 
1 members found this post helpful.
Old 04-04-2010, 04:28 AM   #4
Rodnower
Member
 
Registered: Mar 2010
Posts: 54

Original Poster
Rep: Reputation: 15
Thank you for replay,

Now after I extracted source, in demo directory stay a Makefile, but when I try:
Code:
make
I get:
Code:
Makefile:4: ../../configs/current: No such file or directory
make: *** No rule to make target `../../configs/current'.  Stop.
Do you know what I must to do?

Last edited by Rodnower; 04-04-2010 at 04:29 AM.
 
Old 04-04-2010, 05:57 AM   #5
Rodnower
Member
 
Registered: Mar 2010
Posts: 54

Original Poster
Rep: Reputation: 15
So, like I understand, for comipling samples (to the point, I don't want to compile exactly samples, I want to compiling something for see how I do it in linux for OpenGL), I need follow manual:
http://www.mesa3d.org/install.html#unix-x11

But in libdrm stage (when I compile libdrm-2.4.15), I get error:
Code:
intel_bufmgr_gem.c:1590: error: ‘drm_intel_bo_gem’ has no member named ‘reloc_target_bo’
make[3]: *** [intel_bufmgr_gem.lo] Error 1
make[3]: Leaving directory `/home/rodnower/Desktop/Mesa/libdrm-2.4.15/libdrm/intel'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/rodnower/Desktop/Mesa/libdrm-2.4.15/libdrm'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/rodnower/Desktop/Mesa/libdrm-2.4.15/libdrm'
make: *** [all-recursive] E)!
Some one know what this mean?

Last edited by Rodnower; 04-04-2010 at 05:58 AM.
 
Old 04-04-2010, 08:19 AM   #6
Rodnower
Member
 
Registered: Mar 2010
Posts: 54

Original Poster
Rep: Reputation: 15
Succeed!
I compiled Mesa-6.5 and demos together with it
Compiling libdrm-2.4.15 wasn't necessary
 
  


Reply

Tags
centos, mesa, opengl



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
Mesa-Glut compilation problem tethysgods Linux - Software 1 09-16-2004 12:33 PM
mesa problem jag2000 Linux - Hardware 0 07-02-2004 12:14 AM
Mesa Demos Sirrvs Linux - Software 5 08-23-2003 12:33 PM
Installing Mesa & Mesa-demos... bozotix Linux - Software 2 05-09-2002 12:55 AM
Installing and running Mesa nonLinuxGuru Linux - General 0 03-19-2002 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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