File: ios_install.rst

package info (click to toggle)
opencv 2.4.9.1%2Bdfsg-1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 126,800 kB
  • ctags: 62,729
  • sloc: xml: 509,055; cpp: 490,794; lisp: 23,208; python: 21,174; java: 19,317; ansic: 1,038; sh: 128; makefile: 72
file content (46 lines) | stat: -rw-r--r-- 1,259 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.. _iOS-Installation:

Installation in iOS
*******************

Required Packages
=================

  * 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
=========================================================

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

    .. code-block:: bash

       cd /
       sudo ln -s /Applications/Xcode.app/Contents/Developer Developer

#. Build OpenCV framework:

    .. code-block:: bash

       cd ~/<my_working_directory>
       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`.