gali8 / Tesseract-OCR-iOS

Tesseract OCR iOS is a Framework for iOS7+, compiled also for armv7s and arm64.
http://www.nexor.it
MIT License
4.22k stars 949 forks source link

How do I build the framework manually? #327

Open dbmrq opened 7 years ago

dbmrq commented 7 years ago

I don't use CocoaPods, so I'm trying to build the framework myself. I found other related issues, but none of the solutions seem to work for me.

When I follow the instructions at README_howto_compile_libaries.md I get:

curl: (78) RETR response: 550
/bin/sh: ../configure: No such file or directory

Another post also mentioned trying xctool -workspace Tesseract-OCR-iOS.xcworkspace -scheme TesseractOCR -configuration Release CONFIGURATION_BUILD_DIR=$PWD, which gives me:

2017-06-12 16:18:58.201 xctool[33182:2299029] *** Assertion failure in __LaunchXcodebuildTaskAndFeedEventsToReporters_block_invoke(), /tmp/xctool-20161113-88979-ykl8cl/xctool-0.3.1/Common/XCToolUtil.m:395
2017-06-12 16:18:58.239 xctool[33182:2299029] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Got error while trying to deserialize event 'Build settings from command line:': The data is not in the correct format.'

I also tried building the TesseractOCR target on Xcode and it succeeds, but I don't see the framework anywhere.

Any help would be much appreciated.

nilinyi commented 7 years ago

I have the same issue. The instruction for compiling is so old.

nilinyi commented 7 years ago

@dbmrq Hi! Have you found any solutions to that since then?

dbmrq commented 7 years ago

@nilinyi I ended up just trying a pre-compiled older version I found somewhere. The OCR results were terrible for my purposes, so I gave up on Tesseract altogether. 🤷‍♂️

Sorry I couldn't be more help.