简体   繁体   中英

Linker error using CIFilter

I'm getting the following linker errors when I try to use CIFilter in iOS 5.

Undefined symbols for architecture i386: "_OBJC_CLASS_$_CIFilter", referenced from: objc class-ref in libios_ngn_stack.a(NgnProxyVideoConsumer.o)"_kCIInputImageKey", referenced from:

The line that causes the error is:

CIFilter *filter = [CIFilter filterWithName:@"CISepiaTone" 
                                          keysAndValues: kCIInputImageKey, image, 
                                @"inputIntensity", [NSNumber numberWithFloat:0.8], nil];

Somebody had the same issue in this question , but the only answer was that he need sLibrary/Frameworks/CoreImage.framework. Could somebody elaborate on how I would go about installing this ramework? (I do have a CoreImage framework in Library/Frameworks/QuartzCore/Frameworks/CoreImage...)

Any help would be appreciated

In Xcode 4.x, simply go to your project settings, click on your target, click on the Build Phases tab, and expand the Link Binary With Libraries group. When you click on the plus button there, you will be presented with a list of libraries to link against.

Find CoreImage.framework in that list (you can filter using the upper search area) and click on Add to add it to the list of linked libraries for your application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM