-4

I'm not able to compile my code in XCode. It is giving me errors. Anybody knows proper steps to install OpenCV and then compile?

Jav_Rock
  • 22,059
  • 20
  • 123
  • 164
Harsh
  • 1

3 Answers3

1

Which plattform are you developing for? iOS or OS X?

For iOS take a look at this blog post: http://aptogo.co.uk/2011/09/opencv-framework-for-ios/ There is even a sample project.

If you're trying to use OpenCV for a desktop application you need to compile OpenCV and then import it into your Xcode project >> Compile OpenCV (2.3.1+) for OS X Lion / Mountain Lion with Xcode

Community
  • 1
  • 1
dom
  • 11,894
  • 10
  • 51
  • 74
0

Consider OpenCV.framework directly from WillowGarage.

It's based on the older C-based interfaces for OpenCV.

If you're dead set on using the latest OpenCV, with its C++ interfaces, make sure you're compiling all of your sources with .mm extension so that the compiler knows you're working in Objective-C++ mode.

If your project is C++-only, you should expand on what's failing in your case.

assafs
  • 161
  • 4
0

Here is an SOF which deals with OpenCV and Iphone. Have a look at it?

iPhone and OpenCV

Another useful SOF to check out:

OpenCV and Xcode

Community
  • 1
  • 1
Abid Rahman K
  • 51,886
  • 31
  • 146
  • 157