PDA

View Full Version : How to compiler under OSX



05-13-2001, 08:23 AM
I am trying to learn OpenGl, following a good tutorial but they do not explain hot to compile it. And of course no doc about it.
Whatever the compiler i use, it can't find standards librairies like:
_ReSizeGLScene
_glBegin
_glClear
_glEnd
...

please help.

Thx

DJ Tricky S
05-13-2001, 06:11 PM
The only OSX development I have done was for Carbon apps but my best advice for you is to find a sample OpenGL project from Apple that actually builds and works, and then slowly modify that to your needs.

05-25-2001, 05:07 AM
What tutorial are you following?
(I am just starting out myself)
Good luck -- Jim

05-29-2001, 07:54 AM
Originally posted by jomeara:
What tutorial are you following?
(I am just starting out myself)
Good luck -- Jim

I am just starting to try OpenGL on OS X as well... having trouble getting things to show up in an NSOpenGLView pane.

For the problem mentioned here though... You must add the OpenGL.framework to your project (this is where all the standard functions are that the compiler complains are undefined). To do this, select "Add FrameWorks..." from the Project menu in Project Builder. The sheet that appears should already show the list of frameworks available in the right pane. Select the OpenGL.framework. Make sure the framework was added under the Linked Frameworks folder of the Frameworks folder in the "Group & Files" hierarchy shown in the Project Builder window (where all your files show up in the project). If not, just find where it was placed in the hierarchy and drag it to the right spot. Depending on what you are doing you may also need to add other framworks such as AGL or GLUT. Hope that helps!