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

Compile error when I tried to run readme example #59

Open
gioknx opened this issue Apr 1, 2016 · 4 comments
Open

Compile error when I tried to run readme example #59

gioknx opened this issue Apr 1, 2016 · 4 comments

Comments

@gioknx
Copy link

gioknx commented Apr 1, 2016

g++ -shared -fPIC -o /tmp/.ffi-inline-1000/484c67a5da898353715fbd3b073fa014f6937466.so /tmp/.ffi-inline-1000/484c67a5da898353715fbd3b073fa014f6937466.cpp -ltesseract 2>>/tmp/.ffi-inline-1000/484c67a5da898353715fbd3b073fa014f6937466.log /tmp/.ffi-inline-1000/484c67a5da898353715fbd3b073fa014f6937466.cpp:1:30: fatal error: tesseract/strngs.h: No such file or directory #include <tesseract/strngs.h> ^ compilation terminated.

@mkaplan9
Copy link

Had this issue (OS X El Capitan). Fixed by downgrading tesseract with

brew uninstall --force tesseract
brew install https://raw.githubusercontent.com/Homebrew/homebrew/8ba134eda537d2cee7daa7ebdd9f728389d9c53e/Library/Formula/tesseract.rb

and updating xcode

xcode-select --install

@bricemaurin
Copy link

the link to the homebrew repo doesn't work anymore...any other solution ?

@chivoX
Copy link

chivoX commented Jan 18, 2017

is this still broken ?

@bricemaurin
Copy link

the link is now functional, but I get the following error:

brew install https://raw.githubusercontent.com/Homebrew/homebrew/8ba134eda537d2cee7daa7ebdd9f728389d9c53e/Library/Formula/tesseract.rb

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.

######################################################################## 100.0%
Error: Calling Resource#sha1 is disabled!
Use Resource#sha256 instead.
/Users/bricemaurin/Library/Caches/Homebrew/Formula/tesseract.rb:123:in `block (2 levels) in <class:Tesseract>'

@chivoX any idea how to fix this ? Thanks !

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