Re: Another OpenGL sample code does not compile
Re: Another OpenGL sample code does not compile
- Subject: Re: Another OpenGL sample code does not compile
- From: Jens Alfke <email@hidden>
- Date: Fri, 27 Nov 2009 22:07:25 -0800
On Nov 27, 2009, at 3:21 PM, Jesse Carpenter wrote: error: Cocoa/Cocoa.h: No such file or directory
Probably there isn't any valid SDK selected in the project's settings. Choose Project > Edit Project Settings and verify that in the General tab, the Base SDK has something selected. Also check the current SDK shown in the project window's toolbar.
I've found that sometimes if you open a project that is configured to use an SDK that's older than anything you have installed, Xcode will end up with no SDK selected at all, causing build failures. This might be happening to you if you've only recently installed Xcode, and you try to use an old project that's configured to build for 10.3.
The point I like to make is Apple uses OpenGL exclusively for their GUI.
That's not really true; Apple's GUIs use the CoreGraphics API, not OpenGL. At some level all these APIs start doing the same thing when they hit the GPU, but the only GUI code I know of that uses OpenGL APIs tends to be for games. (Maybe this is because, from what little I've seen of OpenGL, the APIs are nasty enough that you'd avoid them if you had a choice...)
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden