forked from tesseract-ocr/tesseract
-
Notifications
You must be signed in to change notification settings - Fork 0
TesseractGitInstallation
Zdenko Podobný edited this page Jun 12, 2015
·
2 revisions
These are instructions for installing Tesseract from the git repository. You should be ready to face unexpected problems.
In order to do this, you must have aclocal, autoheader, autoconf, automake, libtool and leptonica installed.
On Debian or Ubuntu, you can probably do that with:
apt-get install autoconf automake libtool libleptonica-dev
Afterwards, the steps for installing the git version of Tesseract, do this:
git clone https://github.com/tesseract-ocr/tesseract.git tesseract-ocr
cd tesseract-ocr
./autogen.sh
./configure
make
sudo make install
sudo make install-langs
sudo ldconfig
On some systems autotools did not create m4 directory automatically (you got error: "configure: error: cannot find macro directory 'm4'
"). In this case you must create m4 dicrectory by yourself before running ./configure
:
mkdir -p m4
If you get error:
make all-recursive
Making all in ccstruct
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -
I.. -I../ccutil -I../cutil -I../image -I../viewer -I/opt/local/
include -I/usr/local/include/leptonica -g -O2 -MT blobbox.lo -MD -MP -
MF .deps/blobbox.Tpo -c -o blobbox.lo blobbox.cpp
mv -f .deps/blobbox.Tpo .deps/blobbox.Plo
mv: rename .deps/blobbox.Tpo to .deps/blobbox.Plo: No such file or
directory
make[3]: *** [blobbox.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
try to run autoreconf -i after ./autogen.sh
Please follow instructions in Visual Studio 2008 Developer Notes for Tesseract-OCR