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. |
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? |
# 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. ..... |
Thank you for replay,
Now after I extracted source, in demo directory stay a Makefile, but when I try: Code:
make Code:
Makefile:4: ../../configs/current: No such file or directory |
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’ |
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. |