Should ever the need to compile Tesseract from SVN arise (version v3.01 at the time of the writing) Please note:
In order to fetch the source issue:
bash-3.2$ svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr-read-only
you have to install Leptonica beforehand (or via macports like me)
bash-3.2$ sudo port install leptonica
if you want to use autotools and libtool from macports (again like me) you’ll have to hack the runautoconf in the tesseract source directory (‘tesseract-ocr-read-only\‘) prior to running it to call glibtoolize instead of libtoolize, rumor has it that libtoolize has been renamed to glibtoolize by the MacrPorts maintainers to avoid eclipsing the apple /usr/bin/libtoolize from apple (that conveniently enough is not compatible with it’s GNU counter part). following is the modified line in runautoconf:
. . . echo "Running libtoolize" glibtoolize . . .
The next step is to run the modified runautoconf:
next you’ll have to hack the tesseract ./configure script to include where macports installs leptonica (which is /opt/local/include/leptonica)
. . . have_lept=no if test "$LIBLEPT_HEADERSDIR" = "" ; then LIBLEPT_HEADERSDIR="/usr/local/include /usr/include /opt/local/include/leptonica" fi . . .
if you skip or mess up the previous step you’ll see the following error when runnig ./configure:
bash-3.2$ ./configure checking build system type... i686-apple-darwin9.8.0 . . checking for Leffler libtiff library... checking linking with -ltiff... ok setting LIBTIFF_CFLAGS= setting LIBTIFF_LIBS=-ltiff checking for leptonica... configure: error: leptonica not found
it’s easy to forget to run
runautoconf script before running
offcourse call 'make'
note that it is also important to call
sudo make install
in order for the language files to be copied to the location Tesseract expects to find them at.