Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Blakeasd

macrumors 6502a
Original poster
Dec 29, 2009
643
0
Hello,

I am trying to follow this OpenGL tutorial. The tutorial require GLEW though, I tried to install it in two ways:

1. Use homebrew

2. Make, then make install

Both methods said that it installed it. When I go to add this to my C++ code:

Code:
#include <GL/glew.h>

It doesn't work. I get an error saying it is not found. How do I #include GLEW in a .cpp Xcode file?

I am using Xcode 4.5 and Mountain Lion

Thanks!
 
Last edited:
I got it to work. If anyone is having the same problem, change the Base SDK to "Current OS X". I had mine on "OS X 10.8" and it couldn't find the framework.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.