views:

811

answers:

2
+1  Q: 

OpenCV and Xcode

I am looking at pattern recognition in images and video and have thought that C++ is the way to go (for high performance/real-time applications). I want to use the OpenCV libraries in Xcode when I build a C++ application (command-line tool)

I am running Xcode 3.2 and have just followed the steps at http://opencv.willowgarage.com/wiki/Mac%5FOS%5FX%5FOpenCV%5FPort up to "This probably breaks something in TIFF export, but the build at least completes" in the section "Building using the new CMake build system". I have had no errors.

How do I proceed if I want to use the libraries in Xcode now or do I need to do something else? Any help is greatly appreciated.

Max.

+3  A: 

Basically its a matter of finding the produced library and dropping it into your xcode project. You can either copy the library into your project or just have a reference to it.

There is a section in the "Xcode Project Management Guide" document that explains how to link libraries and frameworks into your application.

The "Linking" section of "Xcode Build System Guide" might be a good read.

Patrik Svensson
A: 

Follow these steps.