Tesseract-OCR-iOS icon indicating copy to clipboard operation
Tesseract-OCR-iOS copied to clipboard

How do I build the framework manually?

Open dbmrq opened this issue 7 years ago • 3 comments

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.

dbmrq avatar Jun 12 '17 19:06 dbmrq

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

nilinyi avatar Aug 25 '17 19:08 nilinyi

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

nilinyi avatar Sep 12 '17 03:09 nilinyi

@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.

dbmrq avatar Sep 12 '17 04:09 dbmrq