Ask Your Question
2

Error in iOS framework and in tutorial

asked 2012-09-10 10:21:29 -0600

avner gravatar image

updated 2012-09-12 10:49:48 -0600

Kirill Kornyakov gravatar image

I'm having trouble doing the tutorial because the frameworks in it and what I've downloaded are different: http://docs.opencv.org/trunk/doc/tutorials/ios/video_processing/video_processing.html

It seems that i don't have all of the files from the openCV framework like is stated in it (because this file isn't in the framework)

#import <opencv2/highgui/cap_ios.h>

Eventually trying to create a capture device like this:

self.videoCamera = [[CvVideoCamera alloc] initWithParentView:imageView];

How can I get this file? Have googled everywhere

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2012-09-11 13:28:23 -0600

AlexanderShishkov gravatar image

It is not error:-) This file is available in the trunk version of the OpenCV. This tutorial is also written for the future 2.5 release (because it's link is docs.opencv.org/TRUNK/....). But framework for 2.4.2 that is published on our site doesn't contain this file. So if you want to get framework with the file, you should compile framework from the master branch of our repository similar to http://docs.opencv.org/doc/tutorials/introduction/ios_install/ios_install.html#ios-installation

edit flag offensive delete link more

Comments

1

I tried a sample below http://docs.opencv.org/trunk/doc/tutorials/ios/video_processing/video_processing.html#opencviosvideoprocessing ,but encountered the following error.

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_CvVideoCamera", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Is there any additional library?

ken gravatar imageken ( 2012-09-17 03:23:18 -0600 )edit

Question Tools

Stats

Asked: 2012-09-10 10:21:29 -0600

Seen: 1,819 times

Last updated: Sep 12 '12