Installing GLEW and using it with Xcode
Asked Answered
O

1

3

So I already downloaded the lastest glew v. 1.9 from the site and make it in the terminal, what I cant figure out is how to add it successfully to a GLUT OpenGL Xcode project. I can add the OpenGl and GLUT frameworks very easily but I cant find any glew frameworks or something similar.

Main problem is that one of my files has #include GL/glew.h and it cant find it.

Ostosis answered 20/9, 2012 at 18:33 Comment(2)
I know that GLee supports OS-X and does everything GLEW does, only it makes it much easier. Use the latest version from SVN, which has support for newer OpenGL versions. I am surprised that GLEW isn't working on OS-X.Postage
@BenVoigt: He's not saying that it's not working on OSX; he's saying that he can't get it to work.Hyperphagia
C
1

While using 'Frameworks' is the Apple way of doing things, XCode will let you specify header paths and a shared library (as is the convention in Nixlike environments).

1) Go to your target's properties, 2) look for header search paths field and add your Glew headers to that. 3) Then look for the GLEW shared library (typically a '.a' or '.so' file) in the directory where you compiled GLEW. Add this directory to your target's library search paths and 4) then finally link against this library in your dependencies list.

Criollo answered 16/8, 2013 at 5:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.