thank you,all. i have fix it.
[liveuser@localhost ~]$ rpm -qa|grep mesa
[liveuser@localhost ~]$ rpm -qa|grep freeglut
i am just a bit confused with the runtime and the development package.
i tried it from "Add/Remove Software" in FC 11, and chose the related packages to install.
after that i am able to compile some, yet not all, of the demos in "progs" folder.
Well to have the necessary headers on your machine, you should install freeglut-devel, mesa-libGL-devel, and mesa-libGLU-devel. Then try compiling your program again.
On Mon, 28 Sep 2009 20:34:25 +0800
Ocean Spring <email@example.com> wrote:
> Dear all,
> yes, my intention is do OpenGL programming under linux. so what should i do
> and i do need to compile a openGL/Mesa program.
> please give me more advices.
> thank you
> On Mon, Sep 28, 2009 at 6:08 PM, Adam K Kirchhoff <firstname.lastname@example.org>wrote:
> > On Mon, 28 Sep 2009 05:57:26 -0400
> > Ocean Spring <email@example.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® 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-12, 2009. Register now!
> > http://p.sf.net/sfu/devconf
> > _______________________________________________
> > Mesa3d-users mailing list
> > Mesa3dfirstname.lastname@example.org
> > https://lists.sourceforge.net/lists/listinfo/mesa3d-users