sudo apt-get install tesseract-ocr-dev libleptonica-dev python-all-dev swig
tar zxvf python-tesseract-xxxx.tar.gz
cd python-tesseract
python config.py
python setup.py clean
python setup.py build
sudo python setup.py install
sudo apt-get install cdbs dh-buildinfo
./buildDeb
sudo add-apt-repository ppa:nutznboltz/tesseract
sudo apt-get update
sudo apt-get install tesseract-ocr-dev leptonica python-all-dev swig
tar zxvf python-tesseract-xxxx.tar.gz
cd python-tesseract
python config.py
python setup.py clean
python setup.py build
sudo python setup.py install
sudo apt-get install cdbs dh-buildinfo
./buildDeb
brew install tesseract
#brew install swig
export LDFLAGS="-L/opt/local/lib"
tar zxvf python-tesseract-xxxx.tar.gz
cd python-tesseract
python config.py
python setup.py clean
python setup.py build
sudo python setup.py install
-
Install cygwin by starting setup.exe
-
then install subversion and wget
-
start cygwin-bash-shell
svn --force export http://apt-cyg.googlecode.com/svn/trunk/ /bin/ chmod +x /bin/apt-cyg apt-cyg install nano make autobuild libtool libiconv gcc4 libtiff-devel libpng14-devel libgif-devel libSM-devel libjbig-devel
apt-get build-dep tesseract-ocr leptonica
-
compile and link webp and leptonica
wget http://webp.googlecode.com/files/libwebp-0.1.3.tar.gz tar zxvf libwebp-0.1.3.tar.gz cd libwebp-0.1.3 ./autogen.sh ./configure LDFLAGS="-no-undefined -Wl,--as-needed" --prefix=/usr make clean && make -j 4 && make install cd ..
wget http://leptonica.googlecode.com/files/leptonica-1.68.tar.gz tar zxvf leptonica-1.68.tar.gz cd leptonica-1.68 ./autobuild ./configure LDFLAGS="-no-undefined -Wl,--as-needed" --prefix=/usr make clean && make -j 4 && make install cd ..
-
compile and link tesseract-ocr
sudo apt-get install libtiff-dev libjpeg-dev libpng-dev subversion devscripts build-essential debhelper autoconf automake libtool libleptonica-dev
Static Build(easy)
svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr-read-only
cd tesseract-ocr-read-only
./autogen.sh --prefix=/usr
./configure --prefix=/usr --disable-shared
make clean && make -j 4 && make install
cd ..
Shared Build(difficult)
Cygwin is buggy on producing shared library.
svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr-read-only
cd tesseract-ocr-read-only
#wget http://python-tesseract.googlecode.com/files/fix_ugly_cygwin_bug.diff
#patch -p0 -i fix_ugly_cygwin_bug.diff
./autogen.sh --prefix=/usr
./configure LDFLAGS="-no-undefined -Wl,--as-needed" --prefix=/usr
make clean && make "USING_MULTIPLELIBS=1" && make install
-
Make python-tesseract
svn checkout http://python-tesseract.googlecode.com/svn/trunk python-tesseract cd python-tesseract #apt-cyg install swig python #for cygwin only #apt-get install swig python # for natty only python setup.py build python setup.py install