Installation in iOS

Required packages

  • CMake 2.8.8 or higher
  • Xcode 4.3 or higher

Getting the cutting-edge OpenCV from SourceForge SVN repository

Launch SVN client and checkout the current OpenCV snapshot from here:

In MacOS it can be done using the following command in Terminal:

cd ~/<my_working _directory>
svn co

Building OpenCV from source using CMake, using the command line

  1. Make symbolic link for Xcode to let OpenCV build scripts find the compiler, header files etc.

    cd /
    sudo ln -s /Applications/ Developer
  2. Build OpenCV framework

    cd ~/<my_working_directory>
    python opencv/ios/ ios

If everything’s fine, after a few minutes you will get ~/<my_working_directory>/ios/opencv2.framework. You can add this framework to your Xcode projects.