Skip to content

Instructions for OS X outdated #1

Description

@trein

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions