houqp / leptess

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

Run on macOS #9

Closed gcstr closed 4 years ago

gcstr commented 4 years ago

Is this crate linux only? I can't compile one of the dependencies on a mac.

❯ cargo run --example low_level_ocr_full_page
   Compiling tesseract-sys v0.4.0
error[E0432]: unresolved import `leptonica_sys::_IO_FILE`
 --> /Users/gcstr/.cargo/registry/src/github.com-1ecc6299db9ec823/tesseract-sys-0.4.0/src/lib.rs:5:38
  |
5 | use leptonica_sys::{Boxa, Pix, Pixa, _IO_FILE};
  |                                      ^^^^^^^^ no `_IO_FILE` in the root

error: aborting due to previous error
houqp commented 4 years ago

Thanks for the report @gcstr , it should have been fixed now, Please give the latest master a try.

gcstr commented 4 years ago

Thanks for the quick response @houqp! It's working now. 👍