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.21k stars 949 forks source link

lepton lib iOS make library error iOS 11 #361

Open DigitalVanilla opened 6 years ago

DigitalVanilla commented 6 years ago

Im compiling the library for lepton, but I got this error:

../../src/gplot.c:375:14: error: 'system' is unavailable: not available on iOS
    ignore = system(buf);

Im using this makefile: https://github.com/coredumped/Tesseract-OCR-iOS/blob/master/TesseractOCR/Makefile

This is the updated libraries at the begin of the makefile:

LEPTON_NAME = leptonica-1.68
PNG_NAME    = libpng-1.6.34
JPEG_NAME   = jpeg-9a
TIFF_NAME   = tiff-4.0.7

SDK_IPHONEOS_PATH=$(shell xcrun --sdk iphoneos --show-sdk-path)
SDK_IPHONESIMULATOR_PATH=$(shell xcrun --sdk iphonesimulator --show-sdk-path)
XCODE_DEVELOPER_PATH=/Applications/Xcode.app/Contents/Developer
XCODETOOLCHAIN_PATH=$(XCODE_DEVELOPER_PATH)/Toolchains/XcodeDefault.xctoolchain
IOS_DEPLOY_TGT="11.0"

How can I fix it?

Thanks

hejtmii commented 4 years ago

Check this out https://github.com/chaoskyme/Tesseract-OCR-iOS/issues/3

DigitalVanilla commented 4 years ago

Check this out chaoskyme#3

Thanks!