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

Support MacOS for M1 natively #227

Open
stweil opened this issue Dec 13, 2020 · 1 comment
Open

Support MacOS for M1 natively #227

stweil opened this issue Dec 13, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@stweil
Copy link
Collaborator

stweil commented Dec 13, 2020

Currently OCR-D cannot be built natively on MacOS for M1 processors.

This issue tries to track the known problems and solutions.

Working:

  • Installation of developer tools (Xcode, Homebrew) works.
  • MacOS provides Python 3.9.1.
  • ocrd_all can be cloned, make all builds tesseract.

Smaller hacks required:

  • Homebrew needs some smaller hacks for some packages.
  • Tesseract needs fixes for training tools (not required for make all).

Failing:

  • numpy fails to build: clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly.
  • opencv-python-headless fails to build.
  • All processors fail to build because of the missing numpy.
  • Neither tensorflow nor tensorflow-gpu are available in any version.
@stweil stweil added the enhancement New feature or request label Dec 13, 2020
@stweil
Copy link
Collaborator Author

stweil commented Dec 13, 2020

Running make all PIP_OPTIONS="--pre --extra-index-url=https://digi.bib.uni-mannheim.de/pypi" -k now creates at least these processors:

venv/bin/ocrd                           venv/bin/ocrd-import                    venv/bin/ocrd-tesserocr-binarize        venv/bin/ocrd-tesserocr-segment-line
venv/bin/ocrd-dinglehopper              venv/bin/ocrd-make                      venv/bin/ocrd-tesserocr-crop            venv/bin/ocrd-tesserocr-segment-region
venv/bin/ocrd-dummy                     venv/bin/ocrd-olahd-client              venv/bin/ocrd-tesserocr-deskew          venv/bin/ocrd-tesserocr-segment-table
venv/bin/ocrd-export-larex              venv/bin/ocrd-olena-binarize            venv/bin/ocrd-tesserocr-fontshape       venv/bin/ocrd-tesserocr-segment-word
venv/bin/ocrd-fileformat-transform      venv/bin/ocrd-pagetopdf                 venv/bin/ocrd-tesserocr-recognize
venv/bin/ocrd-im6convert                venv/bin/ocrd-repair-inconsistencies    venv/bin/ocrd-tesserocr-segment

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

No branches or pull requests

1 participant