meego / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

Tesseract 3.01 Svn Installation on Linux #514

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

I'm using Tesseract 3.00 on Linux and I would like to upgrade to 3.01 because I 
found a problem with this command: "mftraining -F font_properties -U unicharset 
 -O lang1.unicharset font1.tr cntraining font1.tr".
The solution was to use 3.01 in SVN

After I run "make" appear this :

[root@ec2-50-19-136-24 tesseract-ocr]# make
make  all-recursive
make[1]: Entering directory `/home/kit/tesseract-ocr'
Making all in ccstruct
make[2]: Entering directory `/home/kit/tesseract-ocr/ccstruct'
make[3]: Entering directory `/home/kit/tesseract-ocr/ccstruct'
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  
-I../ccutil -I../cutil -I../image -I../viewer -I/usr/local/include/leptonica  
-g -O2 -MT blobbox.lo -MD -MP -MF .deps/blobbox.Tpo -c -o blobbox.lo blobbox.cpp
mv -f .deps/blobbox.Tpo .deps/blobbox.Plo
mv: cannot stat `.deps/blobbox.Tpo': No such file or directory
make[3]: *** [blobbox.lo] Error 1
make[3]: Leaving directory `/home/kit/tesseract-ocr/ccstruct'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kit/tesseract-ocr/ccstruct'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kit/tesseract-ocr'
make: *** [all] Error 2

Original issue reported on code.google.com by simion.zafiu on 12 Jul 2011 at 11:12

GoogleCodeExporter commented 9 years ago
why you did not run:
./runautoconf
./configure

as suggested in http://code.google.com/p/tesseract-ocr/wiki/ReadMe#Linux or 
http://code.google.com/p/tesseract-ocr/wiki/TesseractSvnInstallation

Original comment by zde...@gmail.com on 12 Jul 2011 at 1:20

GoogleCodeExporter commented 9 years ago
From the beginning I was running:./runautoconf and ./configure 
but for first (./runautoconf) one I receive :
Running libtoolize
You should update your `aclocal.m4' by running aclocal.
Putting files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: `config.guess' exists: use `--force' to overwrite
libtoolize: `config.sub' exists: use `--force' to overwrite
libtoolize: `ltmain.sh' exists: use `--force' to overwrite
Running aclocal
configure.ac:10: error: m4_defn: undefined macro: _m4_divert_diversion
autoconf/general.m4:1559: AC_CONFIG_MACRO_DIR is expanded from...
configure.ac:10: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1

and for the second one I receive : 

 Configuration is done.
You can now build tesseract by running:

When I'm trying to run "make" I receive the error from the top of this issue.

Original comment by simion.zafiu on 12 Jul 2011 at 1:58

GoogleCodeExporter commented 9 years ago
try to run (after ./runautoconf and before ./configure):
autoreconf -i

Original comment by zde...@gmail.com on 12 Jul 2011 at 5:04

GoogleCodeExporter commented 9 years ago
Doesn't work with autoreconf -i.
Another's idea ...  ?

Original comment by simion.zafiu on 13 Jul 2011 at 11:28

GoogleCodeExporter commented 9 years ago
What linux you are using? What version of automake, autoconf, libtool?

Original comment by zde...@gmail.com on 13 Jul 2011 at 4:43

GoogleCodeExporter commented 9 years ago
try this patch. put it to tesseract-ocr directory and aply:

gzip -cd autotools.fix.gz | patch -p0

then run:
./runautoconf
./configure
make

Original comment by zde...@gmail.com on 13 Jul 2011 at 8:09

Attachments:

GoogleCodeExporter commented 9 years ago
Fix !
Thank you !

Original comment by simion.zafiu on 18 Jul 2011 at 1:30

GoogleCodeExporter commented 9 years ago
fixed in r594

Original comment by zde...@gmail.com on 27 Jul 2011 at 8:40