DanBloomberg / leptonica

Leptonica is an open source library containing software that is broadly useful for image processing and image analysis applications. The official github repository for Leptonica is: danbloomberg/leptonica. See leptonica.org for more documentation.
Other
1.76k stars 387 forks source link

34 tests fail in "make check" after successful build #625

Closed 36PopTarts closed 2 years ago

36PopTarts commented 2 years ago

Environment

Current Behavior:

Using the autoconf build method, Leptonica succeeds building but fails to pass all of its tests on make check on only one of my VMs, which as far as I can tell is not different from any of the others which I have built it on and where all tests passed or skipped. It is an Ubuntu 20.04 VM. I wish I knew how to package builds on Linux myself so I could avoid this problem but here we are. I have attached the output from test-suite.log as well as the stderr and stdout from building Leptonica and running make check. test-suite.log install.log

36PopTarts commented 2 years ago

Update: I have tried building Tesseract on this VM on a whim, and it seems to work without issue. It seems the problem is specifically with the tests themselves, or something in that VM's environment, and not Leptonica building on that VM.

stweil commented 2 years ago

make check is currently not robust and tries to run tests which should be skipped, so please make sure that for example all image formats are supported. The output indicates that PNG support is missing.

36PopTarts commented 2 years ago

OK, I really thought I had included sudo apt install libpng-dev in my build script, but apparently I had not. That VM in particular didn't have it even though the others did. My apologies.