Skip to content

Instantly share code, notes, and snippets.

@micahpearlman
Created January 26, 2013 20:41
Show Gist options
  • Save micahpearlman/4644500 to your computer and use it in GitHub Desktop.
Save micahpearlman/4644500 to your computer and use it in GitHub Desktop.
Build an OpenCV framework for iOS
see: http://docs.opencv.org/doc/tutorials/introduction/ios_install/ios_install.html
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
In MacOS it can be done using the following command in Terminal:
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.
cd /
sudo ln -s /Applications/Xcode.app/Contents/Developer Developer
Build OpenCV framework:
cd ~/<my_working_directory>
python opencv/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 OpenCV iOS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment