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
Help me install freeglut library
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Help me install freeglut library
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]
# 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]
Re: Help me install freeglut library
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
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