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

Linking and DLL runtime issues on Windows #296

Open
antxv opened this issue Nov 10, 2023 · 1 comment
Open

Linking and DLL runtime issues on Windows #296

antxv opened this issue Nov 10, 2023 · 1 comment

Comments

@antxv
Copy link

antxv commented Nov 10, 2023

I am attempting to use this package on Windows.

I am using MSYS2 to install tesseract, following the installation instructions:

pacman -S mingw-w64-x86_64-tesseract-ocr
pacman -S mingw-w64-x86_64-tesseract-data-eng

Then I install this package:

go get github.com/otiai10/gosseract/v2

The first problem is a linking error:

cannot find -lleptonica: No such file or directory

I managed to work around this issue by updating the preprocessflags_x.go file from this package. I replaced "-lleptonica" with "-llept".

The second problem is a runtime error:

the procedure entry point _ZSt17_istream_extractRSiPcx could not be located in the dynamic link library C:\msys64\mingw64\bin\libtesseract-5.dll

I am stuck on this one. Any thoughts on how I could work around this issue?

@antxv
Copy link
Author

antxv commented Nov 11, 2023

For the second issue, I used the tesseract API directly, and I had the same issue. So, the first issue is a problem with this package, but the second problem is not.

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

1 participant