houqp / leptess

Productive and safe Rust binding for leptonica and tesseract
https://houqp.github.io/leptess/leptess/index.html
MIT License
259 stars 29 forks source link

failed to run custom build command for `tesseract-sys v0.5.7` #40

Closed bart-krakowski closed 2 years ago

bart-krakowski commented 3 years ago

When I'm trying to add this package to the Cargo.toml file I'm getting the following error: failed to run custom build command fortesseract-sys v0.5.7`

OS: MacOS 12

ccouzens commented 3 years ago

Hello,

I think you might be having this issue https://github.com/ccouzens/tesseract-sys/issues/4

The version of clang that Apple ships has an incompatibility with bindgen.

Can you see if these steps help?

https://github.com/ccouzens/tesseract-sys/issues/4#issuecomment-748373340

ccouzens commented 2 years ago

Closing, as I've changed how tesseract-sys builds on Mac to be simpler.

https://github.com/ccouzens/tesseract-sys/pull/17