LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem with running Mesa demos (https://www.linuxquestions.org/questions/linux-software-2/problem-with-running-mesa-demos-799817/)

Rodnower 04-03-2010 03:32 PM

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.

Rodnower 04-03-2010 05:12 PM

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?

knudfl 04-03-2010 07:37 PM

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

Rodnower 04-04-2010 04:28 AM

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?

Rodnower 04-04-2010 05:57 AM

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?

Rodnower 04-04-2010 08:19 AM

Succeed!
I compiled Mesa-6.5 and demos together with it :)
Compiling libdrm-2.4.15 wasn't necessary


All times are GMT -5. The time now is 12:21 PM.