First time here? Check out the FAQ!

Ask Your Question
2

Cant apply openCV framework to Xcode

asked Sep 4 '12

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?

Preview: (hide)

Comments

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

3 answers

Sort by » oldest newest most voted
1

answered Sep 4 '12

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.

Preview: (hide)

Comments

doesn't work thanks for trying

OrAzran gravatar imageOrAzran (Sep 5 '12)edit

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

0

answered Apr 24 '13

Booker gravatar image

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

Preview: (hide)
0

answered May 17 '13

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...

Preview: (hide)

Question Tools

Stats

Asked: Sep 4 '12

Seen: 2,111 times

Last updated: May 17 '13