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?
3 Answers
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
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.

- 161
- 4
Here is an SOF which deals with OpenCV and Iphone. Have a look at it?
Another useful SOF to check out:

- 1
- 1

- 51,886
- 31
- 146
- 157