skiselkov / libacfutils

58 stars 19 forks source link

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

Open nico87 opened 5 years ago

nico87 commented 5 years ago

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

skiselkov commented 5 years ago

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 commented 5 years ago

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 < notifications@github.com> 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

skiselkov commented 5 years ago

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 commented 5 years ago

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

skiselkov commented 5 years ago

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

nico87 commented 5 years ago

Thank you! I'll check this out asap

nico87 commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

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