错误:'QTVisualContextRef'之前的预期说明符限定符列表

Moo*_*293 0 objective-c

我目前在我的标题代码中收到此错误消息,我不确定为什么:

"错误:'QTVisualContextRef'之前的预期说明符限定符列表"

#import <Cocoa/Cocoa.h>
#import <QTKit/QTKit.h>
#import <OpenGL/OpenGL.h>
#import <QuartzCore/QuartzCore.h>
#import <CoreVideo/CoreVideo.h>


@interface MyRecorderController : NSObject {
    IBOutlet QTCaptureView *mCaptureView;

    IBOutlet NSPopUpButton *videoDevicePopUp;
    NSMutableDictionary *namesToDevicesDictionary;
    NSString *defaultDeviceMenuTitle;

    CVImageBufferRef mCurrentImageBuffer;
    QTCaptureDecompressedVideoOutput       *mCaptureDecompressedVideoOutput;

    QTVisualContextRef  qtVisualContext;    // the context the movie is playing in

    // filters for CI rendering
    CIFilter            *colorCorrectionFilter; // hue saturation brightness control through one CI filter
    CIFilter            *effectFilter;          // zoom blur filter
    CIFilter            *compositeFilter;       // composites the timecode over the video
    CIContext           *ciContext;

    QTCaptureSession *mCaptureSession;
    QTCaptureMovieFileOutput *mCaptureMovieFileOutput;
    QTCaptureDeviceInput *mCaptureDeviceInput;

}

@end
Run Code Online (Sandbox Code Playgroud)

在我通过其他代码(例如Cocoa Video Tutorial)看到的例子中,我没有看到他们的代码与我的任何差异.如果有人能够指出这个错误是如何发生的那么会很棒.谢谢堆!:)

Pat*_*ick 6

如果您要编译为64位应用程序,则无法使用QTVisualContextRef.您需要将应用程序编译为32位.

Apple尚未完全充实QTKit至64位......