Ask Your Question

Revision history [back]

IOS OpenCV & Reskit Problem

In order for Reskit to work in our project "Other Linker Flags" must be set to "-ObjC". However OpenCV is giving tis error:

Undefined symbols for architecture i386:

"_AVCaptureSessionPreset1280x720", referenced from:

 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

"_AVCaptureSessionPreset352x288", referenced from:

 -[CvAbstractCamera init] in opencv2(cap_ios_abstract_camera.o)
 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

"_AVCaptureSessionPreset640x480", referenced from:

 -[CvAbstractCamera initWithParentView:] in opencv2(cap_ios_abstract_camera.o)
 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

"_AVCaptureSessionPresetHigh", referenced from:

 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

"_AVCaptureSessionPresetLow", referenced from:

 -[CvAbstractCamera createCaptureSession] in opencv2(cap_ios_abstract_camera.o)
 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

"_AVCaptureSessionPresetMedium", referenced from:

 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)
 CvCaptureCAM::startCaptureDevice(int) in opencv2(cap_avfoundation.o)
 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)
 CvCaptureCAM::startCaptureDevice(int) in opencv2(cap_avfoundation.o)

"_AVCaptureSessionPresetPhoto", referenced from:

 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

"_AVFileType3GPP", referenced from:

 CvVideoWriter_AVFoundation::CvVideoWriter_AVFoundation(char const*, int, double, CvSize, int) in opencv2(cap_avfoundation.o)

any suggestion?

Ps: Sorry for the poor format.

click to hide/show revision 2
retagged

updated 2013-10-25 06:55:46 -0600

berak gravatar image

IOS OpenCV & Reskit Problem

In order for Reskit to work in our project "Other Linker Flags" must be set to "-ObjC". However OpenCV is giving tis error:

Undefined symbols for architecture i386:

"_AVCaptureSessionPreset1280x720", referenced from:

 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

"_AVCaptureSessionPreset352x288", referenced from:

 -[CvAbstractCamera init] in opencv2(cap_ios_abstract_camera.o)
 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

"_AVCaptureSessionPreset640x480", referenced from:

 -[CvAbstractCamera initWithParentView:] in opencv2(cap_ios_abstract_camera.o)
 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

"_AVCaptureSessionPresetHigh", referenced from:

 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

"_AVCaptureSessionPresetLow", referenced from:

 -[CvAbstractCamera createCaptureSession] in opencv2(cap_ios_abstract_camera.o)
 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

"_AVCaptureSessionPresetMedium", referenced from:

 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)
 CvCaptureCAM::startCaptureDevice(int) in opencv2(cap_avfoundation.o)
 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)
 CvCaptureCAM::startCaptureDevice(int) in opencv2(cap_avfoundation.o)

"_AVCaptureSessionPresetPhoto", referenced from:

 -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

"_AVFileType3GPP", referenced from:

 CvVideoWriter_AVFoundation::CvVideoWriter_AVFoundation(char const*, int, double, CvSize, int) in opencv2(cap_avfoundation.o)

any suggestion?

Ps: Sorry for the poor format.