Re: Problems installing leptonica 1.69 with Tesseract 3.01 on Ubuntu 10.04 LTS

1,740 views
Skip to first unread message

zdenko podobny

unread,
Sep 22, 2012, 3:26:45 AM9/22/12
to tesser...@googlegroups.com
Hi,

first of all: there is leptonica 1.69 and tesseract-ocr 3.02 in in Ubuntu 12.4 LTS Precise Pangolin. So maybe you can rebuild packages from there. 

Next:
  • Did you try to run "sudo ldconfig" [1] after installing leptonica?
  • If it does not work, than try to set LIBLEPT_HEADERSDIR (see ./configure --help) e.g. LIBLEPT_HEADERSDIR=/usr/local/include/leptonica ./configure

If it does not help, send config.log (from tesseract-ocr)


-- 
Zdenko
On Fri, Sep 21, 2012 at 11:08 PM, Osman Masood <oama...@gmail.com> wrote:
Hello everyone,
I'm trying to install leptonica 1.69 and Tesseract v3.01 using the exact instructions found in their respective README files. Leptonica installs without a problem; however, whenever I try to run ./configure (even after running ./autogen.sh) it says: configure: error: leptonica library missing
These are the commands I'm using to install each, which are exactly in accordance with the README/INSTALL files:

For leptonica 1.69:
./configure
make
sudo make install

For Tesseract 3.01:
./autogen.sh
./configure
 > configure: error: leptonica library missing.

I'm really confused, can one of you gurus help me out?
Much thanks!

--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to tesser...@googlegroups.com
To unsubscribe from this group, send email to
tesseract-oc...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en


zdenko podobny

unread,
Sep 22, 2012, 6:05:06 AM9/22/12
to tesser...@googlegroups.com
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!

Speedy

unread,
Sep 22, 2012, 7:30:37 AM9/22/12
to tesser...@googlegroups.com
I had not realized that tesseract-ocr 3.02 package has made it to the Ubuntu Precise repositories.  That is great news! 

I have recently updated my speedy-ocr package to work in Precise.  I will need to do some extra testing to assure the bash script, originally written for tesseract 2.04 in Ubuntu 10.04 Lucid, still works with the new version.  Hopefully, it will improve the accuracy.  I will also now be able to start taking advantage of new features. Orientation detection is a great feature for the blind.  It is sometimes nearly impossible to place a page in the proper direction on the scanner!  Will switching from ImageMagic to libtonica for image manipulation improve accuracy? 

Thanks to all who contributed to the new version and especially to who built the Ubuntu Precise package! 


Don Marang
Vinux Package Development Coordinator - vinuxproject.org

zdenko podobny

unread,
Sep 22, 2012, 2:50:47 PM9/22/12
to tesser...@googlegroups.com
BTW: I realized that you just run './configure' for leptonica, so leptonica should be installed (by default) with /usr/local/ prefix. But config.log shows that there is problem with /usr/lib/liblept.so. This indicates you have two installation of leptonica library. If I am right, that please remove (uninstall) version located in /usr/lib because it produce errors. (than run 'sudo ldconfig', and try to configure tesseract...)

-- 
Zdenko

Purohith Nayak

unread,
Jan 21, 2015, 12:56:23 AM1/21/15
to tesser...@googlegroups.com
Hi, 
    I installed leptonica then tesseract and everything went well, But when i try to pass a .png file it gives 
        Error in pixReadStreamPng: function not present
        Error in pixReadStream: png: no pix returned
        Error in pixRead: pix not read
        Unsupported image type

Allistair C

unread,
Jan 21, 2015, 2:53:32 AM1/21/15
to tesser...@googlegroups.com
These are usually because libpng/libtiff Eric are not present, did you confirm the leptonica installed those dependencies?

Sent from my iPhone
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/3c4398c4-9f7c-4eb6-88d1-b93da28646f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

buyi wen

unread,
Sep 6, 2015, 6:25:31 AM9/6/15
to tesseract-ocr
if you like tesseract ocr, you may like this free online ocr tool using tesseract ocr 3.02


在 2012年9月22日星期六 UTC+8下午3:26:45,zdenop写道:
Reply all
Reply to author
Forward
0 new messages