Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions for OS X outdated #1

Open
trein opened this issue Dec 25, 2013 · 0 comments
Open

Instructions for OS X outdated #1

trein opened this issue Dec 25, 2013 · 0 comments

Comments

@trein
Copy link

trein commented Dec 25, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant