libacfutils icon indicating copy to clipboard operation
libacfutils copied to clipboard

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

Open nico87 opened this issue 7 years ago • 9 comments

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

nico87 avatar Nov 09 '18 16:11 nico87

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.

skiselkov avatar Nov 09 '18 16:11 skiselkov

Hi, thanks. I checked it and it was not installed. I installed it then, but the issue is still there.

Il giorno ven 9 nov 2018 alle ore 17:44 Saso Kiselkov < [email protected]> ha scritto:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/skiselkov/libacfutils/issues/4#issuecomment-437419438, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTK5hxGaVEvOSyUbfFZOQaVaqCeIOC3ks5utbDsgaJpZM4YW5Hi .

-- Claudio

nico87 avatar Nov 09 '18 16:11 nico87

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 avatar Nov 09 '18 17:11 skiselkov

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

skiselkov avatar Nov 09 '18 17:11 skiselkov

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

skiselkov avatar Nov 09 '18 18:11 skiselkov

Thank you! I'll check this out asap

nico87 avatar Nov 09 '18 21:11 nico87

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?

nico87 avatar Nov 11 '18 15:11 nico87

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

kukel avatar Sep 02 '20 18:09 kukel

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

todirbg avatar Sep 02 '20 19:09 todirbg