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
[ATTACH=CONFIG]1268[/ATTACH]
3. Within Xcode:
-add /usr/lib/libGLEW.1.13.0.dylib to Build Phases -> Link Binary With Libraries
[ATTACH=CONFIG]1269[/ATTACH]
4. Within Xcode:
-add /usr/include to the project’s Header Search Path.
- add /usr/lib to the project’s Library Search Path.
[ATTACH=CONFIG]1270[/ATTACH]
5. #include <GL/glew.h> in my code.
[ATTACH=CONFIG]1271[/ATTACH]
6. hit build:
…and linker command error:
ld: library not found for -lGLEW.1.13.0