GLEW Won't Work

Discussion in 'Mac Programming' started by Blakeasd, Dec 20, 2012.

  1. Blakeasd, Dec 20, 2012
    Last edited: Dec 20, 2012

    Blakeasd macrumors 6502a

    Dec 29, 2009

    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:

    #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

  2. Blakeasd thread starter macrumors 6502a

    Dec 29, 2009
    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.

Share This Page