If you are going to compile OpenGL/Mesa, you should pull the latest mesa code firstly
git pull git://anongit.freedesktop.org/mesa/mesa
 
then run ./autogen.sh and gmake to make the whole mesa.
 
as you mentioned, if you are going to develop opengl application, I suggest that you remove O2 flag in the Makefile.
 
and in mesa/progs/redbook, you could find some basic application.
 
Cooper

On Mon, Sep 28, 2009 at 8:34 PM, Ocean Spring <meancity@gmail.com> wrote:
Dear all,
 
yes, my intention is do OpenGL programming under linux. so what should i do then.
and i do need to compile a openGL/Mesa program.
 
please give me more advices.
 
thank you
 
OS

On Mon, Sep 28, 2009 at 6:08 PM, Adam K Kirchhoff <adamk@voicenet.com> wrote:
On Mon, 28 Sep 2009 05:57:26 -0400
Ocean  Spring <meancity@gmail.com> wrote:

>
> and i tried to run some opengl program, it failed. after i read some
> articles on Internet, it needs glut.h header file.
> then i installed freeglut.
>
It would be helpful to know what program you are trying to run and what
error you are receiving.

If you really are just trying to run a program, as compared to
compiling one, you almost certainly do not need glut.h.  If you are
trying to compile a program, and it does in fact need glut.h, you would
have to install the freeglut-devel package.  In Fedora (as with many
linux distributions), the header files needed for compiling programs
are included in -devel packages, separate from the libraries and
binaries needed to run programs.

Adam


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Mesa3d-users mailing list
Mesa3d-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-users



--
---------
www.vislab.cn

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Mesa3d-users mailing list
Mesa3d-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-users