Open filiprejmus opened 8 months ago
BTW using github.com/otiai10/gosseract/v2 v2.4.1
Found a fix and dropping it for visibility. My go env used clang for the CC and CXX vars. I changed it to gcc and g++ respectively. The extra env vars
export LIBRARY_PATH="/opt/homebrew/lib"
export CPATH="/opt/homebrew/include"
solve the problem. I don't know if there's a change to do to catch this without including a manual steps for users like me with homebrew installed tesseract and leptonica.
Thank you, @filiprejmus !!
As far as I understand, the very minimum steps to get it work on macos is described here https://github.com/otiai10/gosseract/blob/main/.github/workflows/go-ci.yml#L13-L32
Summary
I tried installing gosseract for my project and getting
Code sample
Environment
Bonus
I tried
this makes my project compile but the process is killed right after running it