LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-17-2013, 05:41 AM   #1
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
building tesseract-ocr from source too many arguments to function `PIX*


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?
 
Old 10-17-2013, 05:51 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748

Original Poster
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Should read the output more carefully. Its taking the library from /usr/include and not my home. So back to the drawing board.
 
Old 10-17-2013, 06:30 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748

Original Poster
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Okay got it solved.
Also there is the configure option --with-extra-includes it does not work out of the box. I had to edit the configure file.
old line 16302: LIBLEPT_HEADERSDIR="/usr/local/include /usr/include"
new line 16302: LIBLEPT_HEADERSDIR="/usr/local/include /usr/include $HOME/include"
This makes make happy.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tesseract - Bulk OCR whole folder of read only pdfs forbinproject Linux - Software 1 09-06-2012 11:17 PM
LXer: gImageReader (Tesseract OCR GUI) Gets Multipage Recognition Support LXer Syndicated Linux News 0 03-25-2011 05:12 PM
LXer: Optical Character Recognition With Tesseract OCR On Ubuntu 7.04 LXer Syndicated Linux News 0 08-30-2007 06:30 PM
OCR & Tesseract...Anyone tried it ? 2GNUBY Linux - Desktop 0 10-10-2006 03:39 PM
LXer: Google's Tesseract OCR engine is a quantum leap forward LXer Syndicated Linux News 0 09-28-2006 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration