mirror of
https://github.com/opencv/opencv.git
synced 2024-12-02 07:39:57 +08:00
4cf9990d4e
Conflicts: doc/tutorials/definitions/noContent.rst doc/tutorials/gpu/gpu-basics-similarity/gpu-basics-similarity.rst doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.rst doc/tutorials/introduction/how_to_write_a_tutorial/how_to_write_a_tutorial.rst modules/core/include/opencv2/core/core.hpp modules/core/include/opencv2/core/internal.hpp modules/core/include/opencv2/core/version.hpp modules/gpu/CMakeLists.txt modules/highgui/perf/perf_output.cpp modules/highgui/test/test_video_io.cpp modules/ocl/include/opencv2/ocl/ocl.hpp modules/ocl/perf/main.cpp modules/ocl/src/hog.cpp modules/ocl/src/initialization.cpp modules/ocl/src/moments.cpp modules/ocl/src/opencl/moments.cl modules/ocl/test/main.cpp modules/ocl/test/test_moments.cpp modules/python/test/test.py modules/ts/include/opencv2/ts/ts_perf.hpp modules/ts/src/precomp.hpp modules/ts/src/ts_perf.cpp
47 lines
1.2 KiB
ReStructuredText
47 lines
1.2 KiB
ReStructuredText
.. _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`.
|