# Unable to build glfw 2.7.2 under osx lion

**URL:** <https://discourse.glfw.org/t/unable-to-build-glfw-2-7-2-under-osx-lion/267>\
**Category:** support\
**Created:** [October 11, 2011, 10:34pm UTC](https://discourse.glfw.org/t/unable-to-build-glfw-2-7-2-under-osx-lion/267 "2011-10-11T22:34:58Z")\
**Posts on this page:** 3\
**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:** [October 11, 2011, 10:34pm UTC](https://discourse.glfw.org/t/unable-to-build-glfw-2-7-2-under-osx-lion/267/1 "2011-10-11T22:34:58Z")

</div>

**[jcage3010](https://sourceforge.net/u/jcage3010/)** wrote on [Tuesday, October 11, 2011](https://sourceforge.net/p/glfw/discussion/247562/thread/c60b8956/#08db):

hi and please forgive the extreme newbieness, but as I’ve been unable to  
locate this error reported anywhere, I’d like to ask for your advice.

when issuing “make cocoa” under osx lion (with XCode4 installed) I get the  
following errors:

cocoa\_window.m:574: error: ‘NSOpenGLPFAOpenGLProfile’ undeclared (first use  
in this function)  
cocoa\_window.m:574: error: (Each undeclared identifier is reported only once  
cocoa\_window.m:574: error: for each function it appears in.)  
cocoa\_window.m:574: error: ‘NSOpenGLProfileVersion3\_2Core’ undeclared  
(first use in this function)

Any idea on what might be wrong?  
Thank you for you attention

---

<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, 2012, 10:00pm UTC](https://discourse.glfw.org/t/unable-to-build-glfw-2-7-2-under-osx-lion/267/2 "2012-04-19T22:00:41Z")

</div>

**[jb89](https://sourceforge.net/u/jb89/)** wrote on [Thursday, April 19, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/c60b8956/#c354):

Same problem here with 2.7.5 2012 - 4- 19

---

<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, 2012, 11:54pm UTC](https://discourse.glfw.org/t/unable-to-build-glfw-2-7-2-under-osx-lion/267/3 "2012-04-19T23:54:24Z")

</div>

**[jb89](https://sourceforge.net/u/jb89/)** wrote on [Thursday, April 19, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/c60b8956/#a660):

Got it working with the help of a friend,

Frist, I had to update Xcode 4.1 to Xcode 4.3.2. Then, I had to install the  
Command Line Tools using Xcode preferences. After that I was able to  
compile through the command line.
