错误:“QTVisualContextRef"之前的预期说明符限定符列表 [英] Error: expected specifier-qualifier-list before 'QTVisualContextRef'

查看:64
本文介绍了错误:“QTVisualContextRef"之前的预期说明符限定符列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在我的标头代码中收到此错误消息,但我不确定原因:

I am currently getting this error message in my header code, and I'm not sure as to why:

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

"Error: expected specifier-qualifier-list before '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

在我通过其他代码看到的示例中(例如 Cocoa 视频教程)我没有看到他们的代码与我的有任何不同.如果有人能够指出这个错误是如何发生的,那就太好了.谢谢堆!:)

In the examples I have seen through other code (e.g. Cocoa Video Tutorial) I have not seen any difference in their code to mine. If anyone would be able to point out as to how this error could have occurred that would be great. Thanks heaps! :)

推荐答案

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

If you are compiling as a 64-bit application, QTVisualContextRef is not available to you. You'll need to compile the application as 32-bit.

Apple 尚未将 QTKit 完全充实到 64 位...

Apple hasn't fully fleshed out QTKit to be 64-bit quite yet...

这篇关于错误:“QTVisualContextRef"之前的预期说明符限定符列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆