Using OpenCV under OS X

Using the OpenCV libraries in an Xcode OS X project (opencv 2.2 and later, opencv 2.1 since SVN r3060)

These instructions were written for Xcode 3.1.x and C++
Also tested with Xcode 3.2.x

Now you can include the OpenCV headers, compile, and run your project. The only #include directive you should need is #include <opencv2/opencv.hpp>. It, in turn, includes the rest of the opencv header files. You can alternatively include individual header files with, for example, #include <opencv2/core/core.hpp> or #include <opencv2/highgui/highgui.hpp>.

Using the OpenCV libraries in an Xcode OS X project (opencv 2.0, and 2.1 via MacPorts)

These instructions were written for Xcode 3.1.x

Now you should be able to include the OpenCV libraries, compile, and run your project

OpenCVWiki: UsingOpenCVUnderOSX (last edited 2011-12-12 21:29:47 by SSteve)