http://lois.di-qual.net/blog/install-an ... n-ios-with -tesseract-ios/
Он отлично работал с распознаванием английского языка, но я не смог добавить в проект какой-либо другой язык. Затем я обнаружил, что некоторые другие проекты успешно делают это, компилируя библиотеку Tesseract:
http://inspirationteam.weebly.com/home/ ... 301-on-ios
http://tinsuke.wordpress.com/2011/11/01 ... ios-sdk-5/
Согласно этим статьям, мои llvm-g++ и llvm-gcc должны быть включены
Код: Выделить всё
export CXX="$DEVROOT/usr/bin/llvm-g++"
export CC="$DEVROOT/usr/bin/llvm-gcc"
Код: Выделить всё
export DEVROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
Код: Выделить всё
checking build system type... i386-apple-darwin13.3.0
checking host system type... i386-apple-darwin13.3.0
checking how to print strings... printf
checking for gcc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc
checking whether the C compiler works... no
configure: error: in `/Users/phuoc-de/Desktop/a/leptonica-1.71':
configure: error: C compiler cannot create executables
See `config.log' for more details
Кто-нибудь знает, как решить эту проблему? Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/253 ... m-gcc-path