2011-08-23 19:19:58 +08:00
.. _iOS-Installation:
Installation in iOS
***** ***** ***** ***** ***
Required packages
==================
2012-06-11 18:33:45 +08:00
* CMake 2.8.8 or higher
* Xcode 4.3 or higher
2011-08-23 19:19:58 +08:00
Getting the cutting-edge OpenCV from SourceForge SVN repository
-----------------------------------------------------------------
2012-06-11 18:33:45 +08:00
Launch SVN client and checkout the current OpenCV snapshot from here: http://code.opencv.org/svn/opencv/trunk/opencv
2011-08-23 19:19:58 +08:00
In MacOS it can be done using the following command in Terminal:
.. code-block :: bash
cd ~/<my_working _directory>
2012-06-11 18:33:45 +08:00
svn co http://code.opencv.org/svn/opencv/trunk/opencv
2011-08-23 19:19:58 +08:00
Building OpenCV from source using CMake, using the command line
================================================================
2012-06-11 18:33:45 +08:00
#. Make symbolic link for Xcode to let OpenCV build scripts find the compiler, header files etc.
2011-08-23 19:19:58 +08:00
2012-06-11 18:33:45 +08:00
.. code-block :: bash
cd /
sudo ln -s /Applications/Xcode.app/Contents/Developer Developer
2011-08-23 19:19:58 +08:00
2012-06-11 18:33:45 +08:00
#. Build OpenCV framework
2011-08-23 19:19:58 +08:00
2012-06-11 18:33:45 +08:00
.. code-block :: bash
cd ~/<my_working_directory>
python opencv/ios/build_framework.py 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.