Getting WatchOCR Running on Fedora21

Written by James McDonald

January 9, 2015

Download the debian WatchOCR package from http://sourceforge.net/projects/watchocr/

Extract the files instruction here ==> http://www.g-loaded.eu/2008/01/28/how-to-extract-rpm-or-deb-packages/

# unpack the deb
ar vx package.deb

# untar the data.tar.gz 
tar xvf data.tar.gz

put the watchocr and img2pdf programs in your path e.g. /usr/local/bin

The package depends on the following cuneiform (<= 0.8.0), exactimage, gs, unpaper, libtiff-tools, sun-java6-jdk, ant, unzip, aspell-en

yum install gs unpaper libtiff-tools cuneiform ant unzip aspell-en (this worked)

Download the exactimage src rpm from the latest version of Fedora you can find

This is the one I got from rpm.pbone.net

Total files number: 1

Site Filename Distribution File size
ftp.pbone.net exact-image-0.8.9-3.1.src.rpm Fedora 19 367067

you will need to resolve dependency problems when using rpmbuild just yum install all the libraries it complains about

# not all these will install as they aren't all valid
# fedora packages.
# but enough installed to let me compile the exact-image src rpm
yum install libexpat-devel libjasper-devel liblcms-devel libpng-devel libtiff-devel lua-devel pkg-config python-devel swig libexpat-devel liblcms-devel OpenEXR.x86_64 libpng OpenEXR.x86_64 freetype lcms libtiff python2 python libIex libIlmImf

Once you have the deps installed build the src rpm install it.

rpmbuild --rebuild exact-image-0.8.9-3.1.src.rpm
yum localinstall /home/jmcd/rpmbuild/RPMS/x86_64/exact-image-0.8.9-3.1.x86_64.rpm

 

 

 

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…

How to Research a CPU Upgrade

How to Research a CPU Upgrade

Upgrade Time! Doing a lot of VMWare Workstation virtualization to create labs for self-study and training. Finding...