Hi,
The installation instructions for OS X are outdated on setup.md. If you perform Tesseract install using Brew formula, the prefix in setup.py should be set to prefix="/usr/local/Cellar/". Also, other adjustments must be done in order to correct the path for Tesseract and Leptonica (draft below):
tesseract_module = Extension('_tesseract',
sources=['tesseract.i','' 'main_dummy.cpp','fmemopen.c'],
swig_opts=["-c++", "-I"+inclpath('tesseract/3.02.02/include/tesseract'),
"-I"+incl,
"-I"+inclpath('leptonica/1.69/include/leptonica')],
include_dirs=['.',inclpath('tesseract/3.02.02/include/tesseract'),
incl,
inclpath('leptonica/1.69/include/leptonica')],
libraries=['stdc++','tesseract','lept'],
)
However, even if this monkey patch, the installation script fails.
Hi,
The installation instructions for OS X are outdated on setup.md. If you perform Tesseract install using Brew formula, the
prefixinsetup.pyshould be set toprefix="/usr/local/Cellar/". Also, other adjustments must be done in order to correct the path for Tesseract and Leptonica (draft below):However, even if this monkey patch, the installation script fails.