• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Another OpenGL sample code does not compile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Another OpenGL sample code does not compile (From: Jesse Carpenter <email@hidden>)

  • Prev by Date: Re: I downloaded a sample code
  • Next by Date: Re: build and run for iPhone Simulator sometimes runs wrong version
  • Previous by thread: Another OpenGL sample code does not compile
  • Next by thread: GLUT Stereo compiles on Xcode 3+
  • Index(es):
    • Date
    • Thread