2014-11-27 20:39:05 +08:00
|
|
|
Installation in iOS {#tutorial_ios_install}
|
|
|
|
===================
|
|
|
|
|
|
|
|
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:
|
2014-11-28 00:54:13 +08:00
|
|
|
|
2014-11-27 20:39:05 +08:00
|
|
|
@code{.bash}
|
|
|
|
cd ~/<my_working _directory>
|
|
|
|
git clone https://github.com/Itseez/opencv.git
|
|
|
|
@endcode
|
2014-11-28 00:54:13 +08:00
|
|
|
|
2014-11-27 20:39:05 +08:00
|
|
|
Building OpenCV from Source, using CMake and Command Line
|
|
|
|
---------------------------------------------------------
|
|
|
|
|
2014-11-28 21:21:28 +08:00
|
|
|
-# Make symbolic link for Xcode to let OpenCV build scripts find the compiler, header files etc.
|
2014-11-27 20:39:05 +08:00
|
|
|
@code{.bash}
|
|
|
|
cd /
|
|
|
|
sudo ln -s /Applications/Xcode.app/Contents/Developer Developer
|
|
|
|
@endcode
|
2014-11-28 00:54:13 +08:00
|
|
|
|
2014-11-28 21:21:28 +08:00
|
|
|
-# Build OpenCV framework:
|
2014-11-27 20:39:05 +08:00
|
|
|
@code{.bash}
|
|
|
|
cd ~/<my_working_directory>
|
|
|
|
python opencv/platforms/ios/build_framework.py ios
|
|
|
|
@endcode
|
2014-11-28 00:54:13 +08:00
|
|
|
|
2014-11-27 20:39:05 +08:00
|
|
|
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
|
|
|
|
---------------
|
|
|
|
|
2014-11-28 00:54:13 +08:00
|
|
|
You can find several OpenCV+iOS tutorials here @ref tutorial_table_of_content_ios.
|