Help me install freeglut library

Issues related to applications and software problems
Post Reply
honganh
Posts: 2
Joined: 2011/08/03 12:57:03

Help me install freeglut library

Post by honganh » 2011/08/03 13:14:29

i'm a newbie with centos.i want programming graphic by opengl library.so,i installed freeglut lib
yum install freeglut* (freeglut and freeglut-devel 2.6)
but i can not found gl.h and glu.h in my header
[honganh@me ~]$ ls /usr/include/GL/
freeglut_ext.h freeglut.h freeglut_std.h glut.h

when i complie :
In file included from /usr/include/GL/glut.h:17,
from /home/honganh/glut.c:7:
/usr/include/GL/freeglut_std.h:120:19: error: GL/gl.h: No such file or directory
/usr/include/GL/freeglut_std.h:121:20: error: GL/glu.h: No such file or directory

please ,help me

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Help me install freeglut library

Post by pschaff » 2011/08/03 23:30:26

Let's see...[code]
# yum whatprovides \*/glu.h
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Loading mirror speeds from cached hostfile
mesa-libGLU-devel-7.7-2.el6.x86_64 : Mesa libGLU development package
Repo : base
Matched from:
Filename : /usr/include/GL/glu.h



mesa-libGLU-devel-7.7-2.el6.i686 : Mesa libGLU development package
Repo : base
Matched from:
Filename : /usr/include/GL/glu.h


# yum whatprovides \*/gl.h
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Loading mirror speeds from cached hostfile
mesa-libGL-devel-7.7-2.el6.x86_64 : Mesa libGL development package
Repo : base
Matched from:
Filename : /usr/include/GL/gl.h



mesa-libGL-devel-7.7-2.el6.i686 : Mesa libGL development package
Repo : base
Matched from:
Filename : /usr/include/GL/gl.h[/code]
So[code]
yum install mesa-libGL-devel mesa-libGLU-devel[/code]

honganh
Posts: 2
Joined: 2011/08/03 12:57:03

Re: Help me install freeglut library

Post by honganh » 2011/08/04 11:58:01

thanks you
but:
yum install mesa-libGL-devel mesa-libGLU-devel
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirror-fpt-telecom.fpt.net
* extras: mirror-fpt-telecom.fpt.net
* rpmforge: fr2.rpmfind.net
* updates: mirror-fpt-telecom.fpt.net
Setting up Install Process
Package mesa-libGL-devel-7.7-2.el6.x86_64 already installed and latest version
Package mesa-libGLU-devel-7.7-2.el6.x86_64 already installed and latest version
Nothing to do


i installed Mesa package,but nothing changed

Post Reply