• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Installation in iOS {#tutorial_ios_install}
2===================
3
4Required Packages
5-----------------
6
7-   CMake 2.8.8 or higher
8-   Xcode 4.2 or higher
9
10### Getting the Cutting-edge OpenCV from Git Repository
11
12Launch GIT client and clone OpenCV repository from [here](http://github.com/itseez/opencv)
13
14In MacOS it can be done using the following command in Terminal:
15
16@code{.bash}
17cd ~/<my_working _directory>
18git clone https://github.com/Itseez/opencv.git
19@endcode
20
21Building OpenCV from Source, using CMake and Command Line
22---------------------------------------------------------
23
24-#  Make symbolic link for Xcode to let OpenCV build scripts find the compiler, header files etc.
25    @code{.bash}
26    cd /
27    sudo ln -s /Applications/Xcode.app/Contents/Developer Developer
28    @endcode
29
30-#  Build OpenCV framework:
31    @code{.bash}
32    cd ~/<my_working_directory>
33    python opencv/platforms/ios/build_framework.py ios
34    @endcode
35
36If everything's fine, a few minutes later you will get
37\~/\<my_working_directory\>/ios/opencv2.framework. You can add this framework to your Xcode
38projects.
39
40Further Reading
41---------------
42
43You can find several OpenCV+iOS tutorials here @ref tutorial_table_of_content_ios.
44