Compile tesseract for iOS SDK 6.0
Update 10/25/12
Added instructions to integrate an armv7s slice in liblept.a
and libtesseract_all.a
.
Update 09/24/12
To make the iOS integration easier, I made a Github repo containing an Objective-C wrapper for Tesseract. It relies on an other repo containing tesseract & leptonica libs. Feel free to improve them !
- Objective-C wrapper: https://github.com/ldiqual/tesseract-ios
- Compiled libraries: https://github.com/ldiqual/tesseract-ios-lib
More informations about these repos on my next article.
Introduction
I had troubles while following the compiling guide from this blog: http://tinsuke.wordpress.com/2011/11/01/how-to-compile-and-use-tesseract-3-01-on-ios-sdk-5/. Some dependencies are missing on a fresh Mountain Lion with Xcode 4.5, and more importantly: the build_dependencies.sh
won’t work.
Here is why: Xcode 4.5 and iOS SDK 6.0 don’t support armv6 anymore.
So here are the steps to build tesseract-ocr for iOS SDK 6.0.