• 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
CoreVideo101 Error when porting to new Cocoa project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreVideo101 Error when porting to new Cocoa project


  • Subject: CoreVideo101 Error when porting to new Cocoa project
  • From: Travis Kirton <email@hidden>
  • Date: Thu, 17 Dec 2009 16:41:15 -0800

Hi,

I'm working with the Core Video frameworks.

I've taken the QTCoreVideo101 example (available from dev.apple) and
modified it slightly (removing some code that I don't need).

Instead of building off of this stripped project, I want to start a new
project and incorporate the code I've adapted.

In XCode I've started a new project, as a cocoa application (i.e.
appdelegate) and copied the headers / files, adapted a new XIB file to
mirror the one available in the tutorial project...

I'm getting a bunch of errors:
error: expected expression before 'CGLContextObj'
error: too few arguments to function 'QTOpenGLTextureContextCreate'
expected expression before 'CGLContextObj'
error: too few arguments to function 'QTOpenGLTextureContextCreate'
error: expected expression before 'GLsizei'
error: too few arguments to function 'glViewport'


based off of this code (which is taken directly from QTCoreVideo101... where
it compiles fine):

// creates a new OpenGL texture context for a specified OpenGL context and
pixel format
QTOpenGLTextureContextCreate(kCFAllocatorDefault,
     CGLContextObj([[self openGLContext] CGLContextObj]),
                                   CGLPixelFormatObj([[self pixelFormat]
CGLPixelFormatObj]),
                                   NULL,    &textureContext);

Any help would be appreciated.
T
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CoreVideo101 Error when porting to new Cocoa project
      • From: Rob Keniger <email@hidden>
  • Prev by Date: Re: Diacritics in Thai
  • Next by Date: Re: Diacritics in Thai
  • Previous by thread: Re: understanding the column of a double clicking into a table view
  • Next by thread: Re: CoreVideo101 Error when porting to new Cocoa project
  • Index(es):
    • Date
    • Thread