I am using SFML as a wrapper around OpenGL for the most part, for which it has been doing great.
However, I have noticed that the OpenGL functions are provided by Apple's OpenGL.framework (I think), and that some functions for OpenGL, such as glGenVertexArrays(), don't actually exist, instead an extension version such as glGenVertexArraysAPPLE() (great name apple!) exist. I don't think it would be too bold to assume that this function call is not cross platform, and some browsing brought me to the conclusion that my life would be better if I used GLEW.
Unfortunately, I cannot prove whether or not this is fact as I am unable to get my xCode project to link to the GLEW binaries.
I added /opt/local/include to my header search paths and /opt/local/lib to my library search paths, and then installed GLEW through macports (>> sudo port install glew).
xCode seems to pick up the header files just fine and is suggesting GLEW code completion in my project now, however, I cannot get the glew library to link.
When I add -libGLEW to my Linker Flags, the linker throws an exception, saying that it cannot find the library libGLEW.
I looked in /opt/local/lib, and libGLEW.dylib (alias to libGLEW.1.9.0.dylib) is present, so I am not certain what is going on.
Any suggestions on what I am doing wrong, or whether or not I want GLEW?
Also, if I manage to get GLEW set up, any precautionary tales to working with GLEW + SFML?
EDIT: I figured this fit in the window forum as it has to do with GL, but you can move it to another forum if you feel it fits better there.