Ask Your Question
1

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

asked 2013-09-04 04:53:44 -0600

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?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2014-04-19 08:23:32 -0600

atrebbi gravatar image

Change the order of frameworks AVFoundation and OpenCv ; make a full clean ( both clean and clean output folder, this last is visible pressing option in project menu ) and then rebuild

edit flag offensive delete link more
1

answered 2014-05-14 02:29:02 -0600

Erzékiel gravatar image

Having the same problem as you. I found the solution, please see my StackOverFlow question.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-09-04 04:53:44 -0600

Seen: 1,553 times

Last updated: May 14 '14