Iphone 如何解决使用GPUImage时架构i386链接器错误?
我正在使用GPUImage对图像进行过滤,我在我的项目中集成了GPUImage,它的集成非常完美,现在我想在我的代码中访问GPUImage文件。我遇到了链接器错误 当我在viewcontroller中使用此代码时Iphone 如何解决使用GPUImage时架构i386链接器错误?,iphone,ios,uiimageview,gpuimage,Iphone,Ios,Uiimageview,Gpuimage,我正在使用GPUImage对图像进行过滤,我在我的项目中集成了GPUImage,它的集成非常完美,现在我想在我的代码中访问GPUImage文件。我遇到了链接器错误 当我在viewcontroller中使用此代码时 - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { GPUImageFilter *selectedFilter; switch
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
GPUImageFilter *selectedFilter;
switch (buttonIndex) {
case 0:
selectedFilter = [[GPUImageGrayscaleFilter alloc] init];
break;
case 1:
selectedFilter = [[GPUImageSepiaFilter alloc] init];
break;
case 2:
selectedFilter = [[GPUImageSketchFilter alloc] init];
break;
case 3:
selectedFilter = [[GPUImagePixellateFilter alloc] init];
break;
case 4:
selectedFilter = [[GPUImageColorInvertFilter alloc] init];
break;
case 5:
selectedFilter = [[GPUImageToonFilter alloc] init];
break;
case 6:
selectedFilter = [[GPUImagePinchDistortionFilter alloc] init];
break;
case 7:
selectedFilter = [[GPUImageFilter alloc] init];
break;
default:
break;
}
UIImage *filteredImage = [selectedFilter imageByFilteringImage:self.imgViewPhoto.image];
[self.imgViewPhoto setImage:filteredImage];
}
如何解决此问题?正在等待答案。GPUImage框架未添加到项目目标中
当然:import GPUImage.hGPUImage框架不会添加到项目目标中
当然:import GPUImage.h错误表示您缺少任何要添加到项目中以使用GPUImage的框架 一般来说,GPUImage需要/使用以下框架 核心媒体 核心视频 打开 AVF基金会 石英砂 检查您错过了哪个框架??加上这样的话 在项目导航器侧栏中选择项目。 单击构建阶段选项卡。 展开“使用库链接二进制文件”部分。 单击“+”按钮。 从列表中选择“missed frmework”。
然后在.m文件中添加import GPUImage.h。错误表示您缺少任何要添加到项目中以使用GPUImage的框架 一般来说,GPUImage需要/使用以下框架 核心媒体 核心视频 打开 AVF基金会 石英砂 检查您错过了哪个框架??加上这样的话 在项目导航器侧栏中选择项目。 单击构建阶段选项卡。 展开“使用库链接二进制文件”部分。 单击“+”按钮。 从列表中选择“missed frmework”。
然后在.m文件中添加import GPUImage.h。我在此处添加了导入GPUImage框架的详细步骤和图片:我在此处添加了导入GPUImage框架的详细步骤和图片:
Start by dragging the GPUImage.xcodeproj file into your application's Xcode project to embed the framework in your project.
Next, go to your application's target and add GPUImage as a Target Dependency.
Finally, you'll want to drag the libGPUImage.a library from the GPUImage framework's Products folder to the Link Binary With Libraries build phase in your application's target.