-
Notifications
You must be signed in to change notification settings - Fork 26
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
Configure fails to get leptonica include dir #61
Comments
Are you sure this not a bug in Fedora's tesseract package? On homebrew the
|
@manisandro I see in the changelog that you did the update. Any idea? |
It has not changed upstream: https://github.com/tesseract-ocr/tesseract/blob/HEAD/tesseract.pc.in#L13 |
That's not the one that is used in cmake-based installations. This one is: https://github.com/tesseract-ocr/tesseract/blob/main/tesseract.pc.cmake |
Ah did you switch the rpm to cmake? That looks like a bug upstream... Let's see what they say: tesseract-ocr/tesseract#3930 |
It seems so. Here: https://src.fedoraproject.org/rpms/tesseract/c/622725d18425696cdca5447558fd9e3ca892f858?branch=rawhide @jeroen Thanks for the quick patch. @manisandro Do you think we could add this downstream until upstream fixes this? |
Upstream has merged it already. Maybe you can cherry-pick this for the rpm: tesseract-ocr/tesseract@aee19fcf8eb832 |
Done for tesseract-5.2.0-5.fc37 and tesseract-5.2.0-5.fc38. |
Tesseract 5.2 (in Fedora 37+) no longer requires leptonica in its .pc file. As a result, installation fails because the configure script does not get its include dir. Example:
An additional to
pkg-config --cflags --silence-errors lept
would be required.The text was updated successfully, but these errors were encountered: