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

Unable to run binarization #253

Closed
SaikrishnaViridis opened this issue Oct 16, 2017 · 3 comments
Closed

Unable to run binarization #253

SaikrishnaViridis opened this issue Oct 16, 2017 · 3 comments

Comments

@SaikrishnaViridis
Copy link

Expected Behavior

Unable to run ocropus-nlbin

Current Behavior

IM-LP-577:Downloads sbachu$ ocropus-nlbin test.JPG -o output
clang: warning: -O4 is equivalent to -O3
clang: error: unsupported option '-fopenmp'
clang: error: unsupported option '-fopenmp'
Traceback (most recent call last):
File "/usr/local/bin/ocropus-nlbin", line 15, in
import ocrolib
File "/usr/local/lib/python2.7/site-packages/ocrolib/init.py", line 12, in
from common import *
File "/usr/local/lib/python2.7/site-packages/ocrolib/common.py", line 34, in
import lstm
File "/usr/local/lib/python2.7/site-packages/ocrolib/lstm.py", line 38, in
import nutils
File "/usr/local/lib/python2.7/site-packages/ocrolib/nutils.py", line 25, in
lstm_native = compile_and_load(lstm_utils)
File "/usr/local/lib/python2.7/site-packages/ocrolib/native.py", line 69, in compile_and_load
path = compile_and_find(c_string,**keys)
File "/usr/local/lib/python2.7/site-packages/ocrolib/native.py", line 65, in compile_and_find
raise CompileError()
ocrolib.native.CompileError

Steps to Reproduce (for bugs)

  1. goto repo folder
  2. ocropus-nlbin test.JPG -o output

Your Environment

  • Python version: Python 2.7.14
@kba
Copy link
Collaborator

kba commented Oct 16, 2017

clang: error: unsupported option '-fopenmp'

OSX's bundled clang doesn't have OpenMP support enabled apparently. I don't have a Mac so I can't help you with that, but googleing macosx clang opnmp shows a few SO answers to that.

@amitdo
Copy link
Contributor

amitdo commented Oct 16, 2017

@zuphilip
Copy link
Collaborator

zuphilip commented Dec 9, 2017

Closing this, because the native code is not anymore needed #265. Update your repository and try again.

@zuphilip zuphilip closed this as completed Dec 9, 2017
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

4 participants