compile error under ubuntu 14.04

624 views
Skip to first unread message

Shree Devi Kumar

unread,
Sep 9, 2014, 8:11:58 AM9/9/14
to tesser...@googlegroups.com, tesser...@googlegroups.com
​Srirangaji tried to build the current git source on ubuntu 14.04 and it is getting an error. 
I downloaded the same version and am able to compile clean on windows8 under msys2.

----------------------------

Here is the difference in the make.log where the errors occur:

On Ubuntu 14.04

mv -f .deps/tesseract-tesseractmain.Tpo .deps/tesseract-tesseractmain.Po
/bin/bash ../libtool  --tag=CXX   --mode=link g++  -std=c++11   -o tesseract tesseract-tesseractmain.o libtesseract.la   -lrt -llept -lpthread 
libtool: link: g++ -std=c++11 -o .libs/tesseract tesseract-tesseractmain.o  ./.libs/libtesseract.so -lrt -llept -lpthread
./.libs/libtesseract.so: undefined reference to `l_generateCIDataForPdf'
./.libs/libtesseract.so: undefined reference to `l_CIDataDestroy'
collect2: error: ld returned 1 exit status
make[2]: *** [tesseract] Error 1
make[2]: Leaving directory `/home/dell14-04/tesseract-ocr/api'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dell14-04/tesseract-ocr'
make: *** [all] Error 2
-------------------
On Windows8 under Msys2 

mv -f .deps/tesseract-tesseractmain.Tpo .deps/tesseract-tesseractmain.Po
/bin/sh ../libtool  --tag=CXX   --mode=link g++  -std=c++11 -Wl,-no-undefined -Wl,--as-needed  -o tesseract.exe tesseract-tesseractmain.o libtesseract.la  -lws2_32  -llept 
libtool: link: g++ -std=c++11 -Wl,-no-undefined -Wl,--as-needed -o .libs/tesseract.exe tesseract-tesseractmain.o  ./.libs/libtesseract.dll.a -lws2_32 -llept -L/usr/local/lib
make[2]: Leaving directory '/home/User/source/tess-3.04/tesseract-ocr/api'
Making all in .
make[2]: Entering directory '/home/User/source/tess-3.04/tesseract-ocr'
make[2]: Leaving directory '/home/User/source/tess-3.04/tesseract-ocr'
Making all in tessdata
...
------------------------------------

Any suggestions on how to fix this?

Thanks,
Shree

shree

unread,
Sep 9, 2014, 12:12:27 PM9/9/14
to tesser...@googlegroups.com, tesser...@googlegroups.com
 Also filed as an issue with additional information and log files

Jeff Breidenbach

unread,
Sep 9, 2014, 9:26:27 PM9/9/14
to tesser...@googlegroups.com, tesser...@googlegroups.com
This error comes from Leptonica 1.70. Tesseract now requires Leptonica 1.71.
Leptonica 1.71 can be installed manually (but not so easily) and will ship with 
Ubuntu for their 14.10 release scheduled for October 23 of this year.

Shree Devi Kumar

unread,
Sep 9, 2014, 10:12:39 PM9/9/14
to tesser...@googlegroups.com
Thanks, Jeff.

Zdenko also indicated in a private email that Sriranga Ji may have another (older) version of leptonica. 

He does have Leptonica 1.71 as compiled by him recently as well as reported by tesseract version that he compiled in May. 
dell14-04@dell1404-OptiPlex-330:~$ tesseract -v
tesseract 3.03
 leptonica-1.71
  libjpeg 8d : libpng 1.2.50 : libtiff 4.0.3 : zlib 1.2.8
​I will ask him to check regarding this.

Shree​


--
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 http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/e38bd7ae-4705-48dc-877d-1932457160d6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages