configure: error: leptonica library missing -- FAQ is not working

491 views
Skip to first unread message

Dennis Park

unread,
May 24, 2016, 6:59:56 AM5/24/16
to tesseract-ocr
faq says:
      CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure
would work, but i still got the problem:
    ......
    checking for mbstate_t... yes
    checking for leptonica... yes
    checking for pixCreate in -llept... no
    configure: error: leptonica library missing

my leptonica header files are present in /usr/local/include/leptonica and .so files(like liblept.so.5.0.0) present it /usr/local/lib
I'm using tesseract-3.04.

Does anyone has any clue?
Thanks in advance.

Dennis.

Zdenko Podobný

unread,
May 24, 2016, 7:13:32 AM5/24/16
to tesser...@googlegroups.com
have a look at config.log for reason (search for "pixCreate")

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-oc...@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/698f0f8f-549d-45f0-8e72-354c7ef4e8ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dennis Park

unread,
May 24, 2016, 7:40:41 AM5/24/16
to tesseract-ocr
1689:configure:17009: checking for pixCreate in -llept
1742:| char pixCreate ();
1746:| return pixCreate ();
1812:ac_cv_lib_lept_pixCreate=no


any clue?

Thanks
Dennis
config.log

Zdenko Podobný

unread,
May 24, 2016, 9:23:18 AM5/24/16
to tesser...@googlegroups.com
That lines are just summary of test above that lines:
configure:16988: checking for leptonica
configure:17007: result: yes
configure:17009: checking for pixCreate in -llept
configure:17034: g++ -o conftest -g -O2 -I/home/work/.jumbo/include -I/home/work/.jumbo/include/leptonica -L/home/work/.jumbo/lib conftest.cpp -llept  -lpthread  >&5
/home/work/.jumbo/lib/liblept.so: undefined reference to `TIFFCleanup'
collect2: ld returned 1 exit status

E.g. your leptonica build is wrong. You are not able to use that leptonica library for anything.

Elso you mentioned  you are using CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib", but g++ is claiming something else:

configure:2709: g++  -I/home/work/.jumbo/include -L/home/work/.jumbo/lib conftest.cpp 


Zdenko

Dennis Park

unread,
May 25, 2016, 1:56:02 AM5/25/16
to tesseract-ocr
Thanks, Zdenko
./configure is ok now.
Have to install leptlib following instruction: http://www.leptonica.com/vs2008doc/building-image-libraries.html

Thanks, again

Dennis
Reply all
Reply to author
Forward
0 new messages