tesseract run-time issue ( possibly related to leptonica build )

已查看 170 次
跳至第一个未读帖子

Tanmay Patil

未读,
2017年11月17日 04:50:272017/11/17
收件人 tesseract-ocr

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 ?

Zdenko Podobný

未读,
2017年11月17日 05:15:052017/11/17
收件人 tesser...@googlegroups.com
you probably do not have development package for tiff  installed (use red hat package manager for installing it).

Zdenko

--
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 tesseract-ocr+unsubscribe@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.

回复全部
回复作者
转发
0 个新帖子