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

build_deps fail with configure: error: leptonica library with pdf support (>= 1.71) is missing #4

Open
nico87 opened this issue Nov 9, 2018 · 9 comments

Comments

@nico87
Copy link

nico87 commented Nov 9, 2018

I run ./build_deps on Ubuntu 18.04 and after a while I get this error.
Is there any way to workaround it?

@skiselkov
Copy link
Owner

Can you check if you have the libpoppler-dev package installed? I suspect leptonica was built without PDF support in it because of a missing dependency and then when tesseract tried to use it, it complains about this. I'll try to test it out on a clean install as well.

@nico87
Copy link
Author

nico87 commented Nov 9, 2018 via email

@skiselkov
Copy link
Owner

It's possible that you'll need to rebuild leptonica so it picks up the pdf library now. Try this:

$ cd ocr
$ do_clean=1 ./build_ocr_deps
$ ./build_ocr_deps

This should clean out the OCR deps libraries and restart their build clean.

@skiselkov
Copy link
Owner

I can reproduce the issue now. Gonna analyze and get back to you.

@skiselkov
Copy link
Owner

Ok, tried to fix this in commit 358f883. Please give that a go.

@nico87
Copy link
Author

nico87 commented Nov 9, 2018 via email

@nico87
Copy link
Author

nico87 commented Nov 11, 2018

Hi, I eventually had the chance to download again the sources and try to recompile them.
Unfortunately I still have the very same issue. Is there something I can provide you that can shed more light on this problem?

@kukel
Copy link

kukel commented Sep 2, 2020

I too have this issue when building libacfutils on linux, but it only occurs in cross-compiling the windows. I'm all doing this on fedora 32

@todirbg
Copy link

todirbg commented Sep 2, 2020

Just remove the distro leptonica library, that fixed it for me. Looks like it is linking to it instead to the provided one in ocr, but does not like it because it is not patched. Maybe the build script should be fixed to hard link provided library. Building on mint btw.
@kukel

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

4 participants