将GPUImage框架添加到IOS项目中的时间正在变成几天。现在我已经开始工作了我正在尝试来自Sunset Lake Software页面的示例过滤实时视频代码。该应用程序构建失败,下面的红色错误:thresholdfFilter‘将GPUImage框架添加到IOS项目
GPUImageVideoCamera *videoCamera = [[GPUImageVideoCamera alloc] initWithSessionPreset:AVCaptureSessionPreset640x480 cameraPosition:AVCaptureDevicePositionBack];
GPUImageFilter *customFilter = [[GPUImageFilter alloc] initWithFragmentShaderFromFile:@"CustomShader"];
GPUImageView *filteredVideoView = [[GPUImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, 768, 1024)];
// problem here
[videoCamera addTarget:thresholdFilter];
[customFilter addTarget:filteredVideoView];
[videoCamera startCameraCapture];
的iPad2上使用的Xcode 6.0.1和测试应用程序与IOS 8.0.2“未申报的用’ - 如果需要,我可以张贴屏幕投我如何看待这个框架。
您是否尝试过使用CocoaPods? – AdamPro13 2014-10-04 17:48:16
@亚当 - 太棒了!非常感谢你向我介绍CocoaPods。我现在已经开始运行GPUImage,没有任何问题。对于其他人来说,我发现了一个很棒的youTube教程 - http://www.youtube.com/watch?v=9_FbAlq2g9o。再次感谢。 – pete 2014-10-05 08:36:17
完全没问题。我发现CocoaPods的那一天改变了我的生活。 – AdamPro13 2014-10-06 04:50:29