Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-platform Linux/OS X Development w/ SDL



I'm not sure what the exact rule on this is but what i've found is...

If you include a framework you prefix your includes with the name of the framework...
For instance in a normal environment on linux you simply #include "SDL.h" ...
On the mac since you are referencing the SDL framework you would #include "SDL/SDL.h".
Same with OpenGL as described below...

As for the error you are getting you can install FINK and then SDL through that to get access to the sdl-config application. Although i suggest you ditch the make file and build yourself an xcode project to maintain it.

-Josh

On Apr 23, 2005, at 9:04 AM, Greg Coats wrote:

<x-tad-bigger>If your OpenGL program has the include library <GL/glut.h>, change this to <GLUT/glut.h> for Mac OS X. If you are including <gl.h> and/or <glu.h>, you'll need to change them to <OpenGL/gl.h> and/or <OpenGL/glu.h> for Mac OS X.</x-tad-bigger>
http://www.edenwaith.com/products/pige/compiling/osx.php

On Apr 23, 2005, at 10:53 AM, Achal Oza wrote:

In file included from Camera.cpp:1:
Camera.h:4:19: GL/gl.h: No such file or directory
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden

References: 
 >Cross-platform Linux/OS X Development w/ SDL (From: Achal Oza <email@hidden>)
 >Re: Cross-platform Linux/OS X Development w/ SDL (From: Greg Coats <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.