Step 1: Installing the basic CentOS Dependencies
# yum install autoconf automake libtool pkgconfig.x86_64 libpng12-devel.x86_64 libjpeg-devel libtiff-devel.x86_64 zlib-devel.x86_64
Step 2: Compile Leptonica-1.79
Step 3: Compile tesseract-5.0
Load a recent version of GNU C++. In my case, I’ve used GNU-6.5 and ISL-0.18 (Integer Set Library)
a. Yum install git
$ yum install git
b. Configure lept.pc for Leptonica-1.79 if you have placed leptonica in a unique directory
$ export PKG_CONFIG_PATH=/usr/local/leptonica-1.79.0/lib/pkgconfig
c. Compile the Tesseract
$ git clone https://github.com/tesseract-ocr/tesseract.git $ cd tesseract $ ./autogen.sh $ ./configure --prefix=/usr/local/tesseract-5.0 $ make $ make install
References:
Hi, I am getting this error while I try to make the files.
error: no matching function for call to ‘tesseract::KDPtrPairDec …
Suggestions?
LikeLike