Ask Your Question

Revision history [back]

iOS opencv2.framework not compile with linker flag -ObjC and -all_load

Hi,

I downloaded the newest 2.4.6 version of the opencv framework for iOS. Everything work until I add -ObjC or -all_load flags to the Other Linker Flags in the target build settings, then I get many errors like: Undefined symbols for architecture i386: and e.g. "_AVCaptureSessionPreset1280x720", referenced from: -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

What should I do to compile it with these flags set, because I need them to other library?