HI all,
trying to get a new version of tesseract-ocr compiled under Debian squeeze but running in following errors:
Code:
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -O3 -DNDEBUG -I../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2 -MT trainingsampleset.lo -MD -MP -MF .deps/trainingsampleset.Tpo -c -o trainingsampleset.lo trainingsampleset.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O3 -DNDEBUG -I../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2 -MT trainingsampleset.lo -MD -MP -MF .deps/trainingsampleset.Tpo -c trainingsampleset.cpp -fPIC -DPIC -o .libs/trainingsampleset.o
/usr/include/leptonica/leptprotos.h: In member function ‘void tesseract::TrainingSampleSet::DeleteOutliers(const tesseract::IntFeatureSpace&, bool)’:
/usr/include/leptonica/leptprotos.h:1075: error: too many arguments to function ‘PIX* pixaDisplayTiledInRows(PIXA*, l_int32, l_int32, l_int32)’
trainingsampleset.cpp:559: error: at this point in file
make[2]: *** [trainingsampleset.lo] Error 1
I compiled all the three latest versions of leptonica. 1.67, 1.68, 1.69 all giving the above error.
I install the software as an unprivileged user. Here's what I did so far:
Code:
#Install build dependencies
apt-get install autoconf automake libtool build-essential zlib1g-dev libtiff4-dev libjpeg62-dev libpng12-dev
# Inside of leptonica source directory
./configure --prefix=$HOME
make
make install
# Inside tesseract-ocr source directory
./autogen.sh
./configure --prefix=$HOME --with-extra-libraries=$HOME/lib
make
make install
The with-extra-libraries is for leptonia libraries. And as the error indicates its found. Any one can give me hint how to get tesseract to compile?