0
我想使用GPUImage,已經添加了目標併成功構建,但是當我在viewController中使用它並構建時,出現了一些我無法理解的問題。有人知道爲什麼非常感謝你。GPUImage生成錯誤
代碼:
UIImage *inputImage = [UIImage imageNamed:@"1"];
GPUImagePicture *stillImageSource = [[GPUImagePicture alloc] initWithImage:inputImage];
GPUImageSepiaFilter *stillImageFilter = [[GPUImageSepiaFilter alloc] init];
[stillImageSource addTarget:stillImageFilter];
[stillImageSource processImage];
UIImage *currentFilteredVideoFrame = [stillImageFilter imageFromCurrentlyProcessedOutput];
UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake(60, 60, 200, 300)];
image.image = currentFilteredVideoFrame;
[self.view addSubview:image];
[image release];
錯誤:
ld: warning: ignoring file /Users/xiaodong/Library/Developer/Xcode/DerivedData/SilentGif-cuagrzcstwdoemeamjiufacggbfa/Build/Products/Debug-iphonesimulator/libGPUImage.a, file was built for archive which is not the architecture being linked (x86_64): /Users/xiaodong/Library/Developer/Xcode/DerivedData/SilentGif-cuagrzcstwdoemeamjiufacggbfa/Build/Products/Debug-iphonesimulator/libGPUImage.a
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GPUImageSepiaFilter", referenced from:
objc-class-ref in ThirdViewController-5FAAC33C6210C63D.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
嗨你有沒有找到解決方案? –
@麥克 - 你找到這個解決方案..?如果發現請告訴我..?我有這個問題。 –