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

Saiko

macrumors newbie
Original poster
Jan 14, 2007
1
0
I'm using Xcode and I was trying to implament OpenGL but it seems that I didn't have the libraries and headers for it so I downloaded the "OpenGL CFM SDK" from apple and got it opened up but It just gives me files and does not tell me where I need to place them in order to use them so any help on how to install this SDK?
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
You probably don't want the CFM SDK. CFM is pretty old school! You might want this if you are writing a Carbon app targeting OS9 and OSX I suppose...

Personally I'd just use the Framework already installed in the normal location. At /System/Library/Frameworks. In this case /System/Library/Frameworks/OpenGL.framework

It contains all the headers I remember being required, but I've not used OpenGL for 8 or 9 years!
 

MrFrankly

macrumors regular
Jan 11, 2006
112
0
I'm using Xcode and I was trying to implament OpenGL but it seems that I didn't have the libraries and headers for it so I downloaded the "OpenGL CFM SDK" from apple and got it opened up but It just gives me files and does not tell me where I need to place them in order to use them so any help on how to install this SDK?

You first need to include the frameworks as said above and then include the include files from their Mac OS X specific paths <OpenGL/gl.h> or if you want glut use <GLUT/glut.h>. It should work then.
 

lazydog

macrumors 6502a
Sep 3, 2005
709
6
Cramlington, UK
There are quite a few example projects in /Developer/Examples/OpenGL you can look at and base your own projects on. These projects should open up and compile without problems in XCode. The GLUT examples are probably a good place to start.

b e n
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.