Ask Your Question
2

Cant apply openCV framework to Xcode

asked 2012-09-04 11:05:27 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

hi i have try to add the opencv framework to my xcode project in order to apply face recognition (PCA) algorithm. xcode is keep telling me that this file are not found

#include <OpenCV/cv.h>
#include <OpenCV/cvaux.h>
#include <Opencv/highgui.h>

i have also to use it on a working opencv project example! and i am keep getting the same problem, ideas?

edit retag flag offensive close merge delete

Comments

OpenCV framework is compiled for iOS. Do you use it for iOS project? I am confused by using include directive instead of import.

AlexanderShishkov gravatar imageAlexanderShishkov ( 2012-09-04 11:12:41 -0600 )edit

3 answers

Sort by ยป oldest newest most voted
1

answered 2012-09-04 11:11:40 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Please try to include only opencv.hpp file:

#import <opencv2/opencv.hpp>

in .pch file before any other import directives.

edit flag offensive delete link more

Comments

doesn't work thanks for trying

OrAzran gravatar imageOrAzran ( 2012-09-05 01:52:17 -0600 )edit

Could you upload any example with problem to a file hosting?

AlexanderShishkov gravatar imageAlexanderShishkov ( 2012-09-05 04:46:01 -0600 )edit
0

answered 2013-04-24 03:00:51 -0600

Booker gravatar image

you have to change YourCode.m -> YourCode.mm

edit flag offensive delete link more
0

answered 2013-05-17 09:17:34 -0600

PitOn gravatar image

Hi, guys.

Tried all these variants above but no luck. Still produces such errors:

Expected '(' for function-style cast... in mat.hpp and operations.hpp...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-09-04 11:05:27 -0600

Seen: 2,010 times

Last updated: May 17 '13