you probably do not have development package for tiff  installed (use red
hat package manager for installing it).

Zdenko

On Fri, Nov 17, 2017 at 3:52 AM, Tanmay Patil <[email protected]>
wrote:

> I am working on tesseract engine .
> Used red hat linux to build both leptonica and tesseract . On running
> tesseract getting following error.
>
> [tesseract-ocr]$ tesseract address.png out1
> Error in pixReadMemTiff: function not present
> Error in pixReadMem: tiff: no pix returned
> Error in pixaGenerateFontFromString: pix not made
> Error in bmfCreate: font pixa not made
> Tesseract Open Source OCR Engine v4.00.00alpha with Leptonica
> Error in pixReadStreamPng: function not present
> Error in pixReadStream: png: no pix returned
> Error in pixRead: pix not read
> Error during processing.
>
>
> while searching on the net , i came to find that it is problem with
> leptonica build . and it is not built properly with ltiff . In fact in
> config.log which gets generated out of ./configure command . i can see
> following
>
> configure:12538: checking for TIFFOpen in -ltiff
> configure:12564: gcc -o conftest -g -O2  -Wl,-rpath -Wl,/lib64 conftest.c 
> -ltiff -lm
>     >&5
> /bin/ld: cannot find -ltiff
>
> However i see that libtiff is present in the system
>
> [ec2-user@ip-172-31-35-131 lib]$ ldconfig -p | grep libtif
>         libtiffxx.so.5 (libc6,x86-64) => /lib64/libtiffxx.so.5
>         libtiff.so.5 (libc6,x86-64) => /lib64/libtiff.so.5
>
> I tried pointing to /lib64 path , as per reference from leptonica site [
> http://www.leptonica.com/source/README.html][1]
> *Finally, if you find that the installed programs are unable to link at
> runtime to the installed library, which is in /usr/local/lib, try to run
> configure in this way: LDFLAGS="-Wl,-rpath -Wl,/usr/local/lib" ./configure
> which causes the compiler to pass those options through to the linker.*
>
>
> changing LDFLAGS to point to /lib64 is also not working
> LDFLAGS="-Wl,-rpath -Wl,/lib64" ./configure
>
> Any suggestions ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/tesseract-ocr.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/tesseract-ocr/ca5a04e3-7524-4432-adcc-f4f1c4dea1a8%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/ca5a04e3-7524-4432-adcc-f4f1c4dea1a8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8zhwJVaH-k%2BPtjJERcwmaytdtqfzYe6rgfF5CcnZAecDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to