Xcode configuring OpenGL

Xcode configuration OpenGL
Download the source files, http://www.glfw.org/download.html
compilation Open a terminal, type the command line

cmake .
sudo make install

Compiles displays library paths, such as:
Installing:/usr/local/lib/libglfw3. A

<>sr /local/include/>

the source file: http://glew.sourceforge.net/ zip is ok

sudo make install
make clean

This is going to be a slow step
Sudo make install on Mac OS X EI Capitan
install -d-m 0755 “/usr/include/GL”
stall: mkdir /usr/include: Operation not permitted
m>: * [install.include] Error 71
This is because, starting with El Capitan, Mac OS X has enabled System Integrity Protection, which no longer allows direct access to directories under /usr, except /usr/local, so you need to install GLEW under /usr/local. GLEW’s Makefile will be changed to GLEW_DEST?= /usr = GLEW_DEST?Sudo make install = /usr/local
Then link some Framework
Cocoa, IOKIT, CoreVideo, and the generated libglfw3.a

Read More: