Build tesseract 3.02 on OSX 10.8.4

541 views
Skip to first unread message

Mike Mannion

unread,
Jul 3, 2013, 5:06:31 PM7/3/13
to tesser...@googlegroups.com, michael...@me.com
Followed the usual steps...

$ sudo port install leptonica
$ <download, extract tar ball>
$ cd tesseract-ocr
$ export LIBLEPT_HEADERSDIR="/opt/local/include/leptonica"
$ ./configure
$ make

... and the result...

make  all-recursive
Making all in ccutil
/bin/sh ../libtool --tag=CXX   --mode=link g++ -DTESSDATA_PREFIX=/usr/local/share/  -g -O2  -L/opt/local/lib -o libtesseract_ccutil.la  ambigs.lo basedir.lo bits16.lo bitvector.lo ccutil.lo clst.lo elst2.lo elst.lo errcode.lo globaloc.lo hashfn.lo indexmapbidi.lo mainblk.lo memry.lo serialis.lo strngs.lo tessdatamanager.lo tprintf.lo unichar.lo unicharmap.lo unicharset.lo unicodes.lo params.lo    -llept 
grep: /opt/local/lib/libxcb.la: No such file or directory
sed: /opt/local/lib/libxcb.la: No such file or directory
libtool: link: `/opt/local/lib/libxcb.la' is not a valid libtool archive
make[3]: *** [libtesseract_ccutil.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Please advise!

Sven Pedersen

unread,
Jul 4, 2013, 7:07:23 AM7/4/13
to tesser...@googlegroups.com
HomeBrew works well.
Sven
--
--
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
 
---
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
``All that is gold does not glitter,
  not all those who wander are lost;
the old that is strong does not wither,
  deep roots are not reached by the frost.
From the ashes a fire shall be woken,
  a light from the shadows shall spring;
renewed shall be blade that was broken,
  the crownless again shall be king.”

ultrasaurus

unread,
Jul 14, 2013, 9:12:12 AM7/14/13
to tesser...@googlegroups.com, michael...@me.com
I tried building from source on Mac OSX 10.8.4 homebrew based on these instructions:

and got different errors:

cd tesseract-ocr
sh ./autogen.sh
./configure
make
:
:
/usr/bin/ranlib: file: .libs/libtesseract.a(quadratc.o) has no symbols
libtool: link: ranlib .libs/libtesseract.a
ranlib: file: .libs/libtesseract.a(quadratc.o) has no symbols
libtool: link: rm -fr .libs/libtesseract.lax
libtool: link: ( cd ".libs" && rm -f "libtesseract.la" && ln -s "../libtesseract.la" "libtesseract.la" )
g++ -DHAVE_CONFIG_H -I. -I.. -O3 -DNDEBUG -DLOCALEDIR=\"/usr/local/share/locale\" -I../ccutil -I../ccstruct -I../image -I../viewer -I../textord -I../dict -I../classify -I../ccmain -I../wordrec -I../cutil -I/usr/local/include/leptonica -g -O2 -MT tesseract-tesseractmain.o -MD -MP -MF .deps/tesseract-tesseractmain.Tpo -c -o tesseract-tesseractmain.o `test -f '../api/tesseractmain.cpp' || echo './'`../api/tesseractmain.cpp
mv -f .deps/tesseract-tesseractmain.Tpo .deps/tesseract-tesseractmain.Po
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -o tesseract tesseract-tesseractmain.o libtesseract.la -llept
libtool: link: g++ -g -O2 -o .libs/tesseract tesseract-tesseractmain.o -Wl,-bind_at_load ./.libs/libtesseract.dylib -llept
make[2]: *** No rule to make target `tesseractmain.h', needed by `all-am'. Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I've found that brew install tesseract does work, so there may be a clue there.

ultrasaurus

unread,
Jul 14, 2013, 11:16:15 AM7/14/13
to tesser...@googlegroups.com
I was able to successfully build with HomeBrew, but I needed to check out r860 (the most recent commit removes a file that is referred to in a header)

svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr-r860 --revision r860
cd tesseract
-ocr-r860/
./autogen.sh
./configure
make
make install
make install
-langs


thanks to these great instructions: http://emop.tamu.edu/node/45
HomeBrew works well.

For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en
 
---
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.

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

zdenko podobny

unread,
Jul 15, 2013, 2:59:24 AM7/15/13
to tesser...@googlegroups.com, michael...@me.com
In svn there is version for developesr - if you want to use it you should:
a) expect problems :-)
b) be able to fix problems ;-)

Try svn up.

Zdenko


--
--
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

For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en
 
---
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.

Sarah Allen

unread,
Jul 15, 2013, 9:27:08 PM7/15/13
to tesser...@googlegroups.com
I posted here before finding the tesseract-dev group. I'm the same one who isolated the issue & reported it.  Thanks for fixing on Sunday :)

I'll stick to posts about *using* Tesseract on this mailing list from now on.  Sorry about that!

Sarah


You received this message because you are subscribed to a topic in the Google Groups "tesseract-ocr" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tesseract-ocr/3lDPKmyaMAg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tesseract-oc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages