forked from gali8/Tesseract-OCR-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed support for x86_64 (iPhone 5S+ simulators) and updated leptonic…
…a to 1.71.
- Loading branch information
Kevin Conley
committed
Dec 3, 2014
1 parent
02a9a4a
commit 735c0e1
Showing
14 changed files
with
554 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,5 @@ profile | |
*.moved-aside | ||
DerivedData | ||
.idea/ | ||
leptonica-* | ||
tesseract-* |
Binary file modified
BIN
+0 Bytes
(100%)
Products/TesseractOCR.framework/Versions/A/Resources/Info.plist
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,28 @@ | ||
# Compiling the .a files your self | ||
# Compiling the .a library files your self | ||
|
||
|
||
### Step 1 - Prerequisits | ||
In order to compile you need these tools: | ||
- Xcode 5.0.2 (5A3005) | ||
### Step 1 - Prerequisites | ||
First you need to install these tools: | ||
|
||
- Xcode 6.1 (6A1052d) with command line tools | ||
- M4 | ||
- Autoconf | ||
- Automake | ||
- Libtool | ||
|
||
|
||
### Step 2 - Download and unzip | ||
Download the source code for `leptonica-1.69` from the internet. | ||
Download the source code for `leptonica-1.71` from the Internet here: http://leptonica.org/source/leptonica-1.71.tar.gz. | ||
Unzip it in this folder. | ||
|
||
|
||
Download the source code for `tesseract-3.02.02` from the internet. | ||
Download the source code for `tesseract-3.03` from the Internet here: https://tesseract-ocr.googlecode.com/archive/3.03-rc1.tar.gz. | ||
Unzip it in this folder. | ||
|
||
|
||
### Step 3 - Compile | ||
Run `build_dependencies.sh` from terminal, this compiles first leptonica and then tesseract. | ||
|
||
This creates, after few minutes, a folder named `dependencies`. | ||
|
||
Run `build_dependencies.sh` from the terminal. This first compiles leptonica and then tesseract for every architecture iOS/simulator uses (arm7 arm7s arm64 i386 x86_64), and then combines the resulting libs into one library file. It does this for both leptonica and tesseract, so the final results of the script are "libtesseract_all.a", "liblept.a", and "include" directories for both leptonica and tesseract. Finally, the script copies these results into the "lib" and "include" directories inside this directory. | ||
|
||
### Step 4 - Done | ||
Copy the file `dependencies/lib/liblept.a` and replace `lib/liblept.a`. | ||
Copy the file `dependencies/lib/libtesseract_all.a` and replace `lib/libtesseract_all.a`. | ||
Copy the folder `dependencies/include/leptonica` and replace `include/leptonica`. | ||
Copy the folder `dependencies/include/tesseract` and replace `include/tesseract`. | ||
|
||
### Step 4 - Build | ||
Finally, with `Tesseract OCR iOS.xcodeproj` open in Xcode, build the target "TesseractOCRAggregate". This will use the "lib" and "include" directories to create the Tesseract OCR iOS framework. |
Oops, something went wrong.