PDA

View Full Version : GLEW in Xcode



goodbyeHorses
09-19-2015, 12:08 PM
SYSTEM SPECS
OS: OS X 10.10.5
IDE: Xcode 6.4
GL_VERSION: 2.1 NVIDIA-10.4.2 310.41.35f01
GL_REDERER: NVIDIA GeForce GT 650M OpenGL Engine
Using GLFW

PROBLEM
Just started reading OpenGL superBible 7th but its examples use a version of OpenGL (4.3) that is not supported by my system. GLEW seems to be a workaround but I can't get it to work (linker error).


STEPS TAKEN SO FAR:

1. Download glew and unzip

2. From the terminal:
cd glew-1.13.0/
sudo make install

2106

3. Within Xcode:
-add /usr/lib/libGLEW.1.13.0.dylib to Build Phases -> Link Binary With Libraries

2107

4. Within Xcode:
-add /usr/include to the project's Header Search Path.
- add /usr/lib to the project's Library Search Path.

2108

5. #include <GL/glew.h> in my code.

2109

6. hit build:
...and linker command error:
ld: library not found for -lGLEW.1.13.0 :confused: