Have a look at config.log and search for leptonica - you will see there the error messages like this:
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/liblept.so: undefined reference to `TIFFWriteScanline'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/liblept.so: undefined reference to `png_create_read_struct'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/liblept.so: undefined reference to `jpeg_destroy'
These are function in jpeg, tiff, png libraries. Can you check where are installed these (shared) libraries?
--
Zdenko
On Sat, Sep 22, 2012 at 10:31 AM, Osman Masood
<oama...@gmail.com> wrote:
Yes, I tried running sudo ldconfig after installing leptonica, and set the LIBLEPT_HEADERSDIR environment variable. I also did 'make clean' in the Leptonica directory and installed it again. However, it's still giving me the same error. (I also tried using the latest version of Tesseract on trunk, 3.02, but same results.)
What's weird is that I followed pretty much the same steps and installed Tesseract 3.02 successfully on OS X 10.8 (on a different machine).I actually had tried to install previous versions of Tesseract (3.00 and 3.01) and Leptonica (1.67) on Ubuntu before this - would that make a difference?
My config.log is attached.
Thanks for the help!