opencv/doc/tutorials/introduction/ios_install/ios_install.rst

47 lines
1.2 KiB
ReStructuredText
Raw Normal View History

.. _iOS-Installation:
Installation in iOS
*******************
Required Packages
=================
2012-06-11 18:33:45 +08:00
* CMake 2.8.8 or higher
* Xcode 4.2 or higher
Getting the Cutting-edge OpenCV from Git Repository
---------------------------------------------------
Launch GIT client and clone OpenCV repository from `here <http://github.com/itseez/opencv>`_
In MacOS it can be done using the following command in Terminal:
.. code-block:: bash
cd ~/<my_working _directory>
git clone https://github.com/Itseez/opencv.git
Building OpenCV from Source, using CMake and 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.
2012-06-11 18:33:45 +08:00
.. code-block:: bash
2012-06-11 18:33:45 +08:00
cd /
sudo ln -s /Applications/Xcode.app/Contents/Developer Developer
#. Build OpenCV framework:
2012-06-11 18:33:45 +08:00
.. code-block:: bash
2012-06-11 18:33:45 +08:00
cd ~/<my_working_directory>
2013-06-19 04:20:21 +08:00
python opencv/platforms/ios/build_framework.py ios
If everything's fine, a few minutes later you will get ~/<my_working_directory>/ios/opencv2.framework. You can add this framework to your Xcode projects.
Further Reading
===============
You can find several OpenCV+iOS tutorials here :ref:`Table-Of-Content-iOS`.