# Failed to Compile GLFW-2.7.8 on Linx ( Ubuntu 12.10 64 bits )

**URL:** <https://discourse.glfw.org/t/failed-to-compile-glfw-2-7-8-on-linx-ubuntu-12-10-64-bits/552>\
**Category:** support\
**Created:** [April 19, 2013, 4:36am UTC](https://discourse.glfw.org/t/failed-to-compile-glfw-2-7-8-on-linx-ubuntu-12-10-64-bits/552 "2013-04-19T04:36:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [April 19, 2013, 4:36am UTC](https://discourse.glfw.org/t/failed-to-compile-glfw-2-7-8-on-linx-ubuntu-12-10-64-bits/552/1 "2013-04-19T04:36:24Z")

</div>

**[lixuan24](https://sourceforge.net/u/lixuan24/)** wrote on [Friday, April 19, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/7c7fb533/#c6d6):

Hello, I want to compile GLFW-2.7.8 with OpenGL 3.X (or 4.X), because I want to use some new features. Here is all what I did:

**First** I installed the latest driver of ATI Graphics Card Radeon 5000 series.

1. The _fglrxinfo_ command gave me the following information: _OpenGL version string: 4.2.12002 Compatibility Profile Context 9.012_.
2. glATI.h and glxATI.h were generated under /usr/include/GL/

**Then** I installed GLEW-1.9.0.

**After that** since I don’t have glu.h, I use _sudo apt-get install libglu1-mesa-dev_. However I was forced to install its dependency libgl1-mesa-dev ( I think it is a simulator of OpenGL and its version is far behind OpenGL provided by my ATI Driver).

1. glu.h gl.h glx.h were generated under /usrinclude/GL/
2. I delete gl.h and glx.h (For the reason that I think they are generated by libgl1-mesa-dev and I don’t want to use meas OpenGL the version of which is old)

I changed the name of glATI.h and glxATI.h which were generated after installing ATI driver into gl.h and glx.h. I hope this might inform my compiler to use the OpenGL provided by my ATI driver.

**At last** , I tried to compile GLFW-2.7.8. I use make x11-install commmand. A lot of error message like the following kind occurred:  
_/usr/include/GL/gl.h:3790:26: error: expected declaration specifiers or ‘…’ before ‘_’ token\*

The corresponding line in gl.h is:  
_typedef GLvoid (APIENTRY \* PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w);_

Thank you for reading my problems.  
Please help me.

**PS**. I also tried to use gl.h and glx.h provided by libgl1-mesa-dev instead of renamed glATI.h and glxATI.h, the GLFW-2.7.8 complied successfully. But I don’t know whether it will give me the new feature of OpenGL, since mesa OpenGL is not 3.0 or 4.0 version.
