ios - _OBJC_CLASS_$_CvVideoCamera", referenced from...
Hi all,
I am attempting to recreate the very simple opencv iOS example on: http://docs.opencv.org/doc/tutorials/ios/video_processing/video_processing.html#opencviosvideoprocessing
but I am having some issues with the linking.
In my code I have:
#import <opencv2/highgui/cap_ios.h>
and later in the code, I initialize the camera with:
self.videoCamera = [[CvVideoCamera alloc] initWithParentView:cameraView];
self.videoCamera.defaultAVCaptureDevicePosition = AVCaptureDevicePositionFront;
self.videoCamera.defaultAVCaptureSessionPreset = AVCaptureSessionPreset352x288;
self.videoCamera.defaultAVCaptureVideoOrientation = AVCaptureVideoOrientationPortrait;
//self.videoCamera.defaultFPS = 30;
self.videoCamera.grayscaleMode = NO;
exactly as the example says.
But when I compile, I have get the linker errors:
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_CvVideoCamera", referenced from:
objc-class-ref in libBlackstoneLibrary.a(BlackstoneLibrary.o)
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does anyone have any idea how to diagnose this? All my header files seem to be found correctly.
I know there are similar questions on here, but they are all unanswered as well.
Many thanks!