AmitGorvadiya / tesseract-ocr

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

Tesseract-2.04 will not build on AIX 5.3 with gcc #268

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install GCC, libtiff, libpng, libjpeg and prerequsites from
http://perzl.org/aix/
2. Extract tesseract-2.04 and tessdata
2. ./configure --prefix=/opt/freeware --disable-largefile
3. make

What is the expected output? What do you see instead?
Expected a completed build, Instead the build fails in the training
subdirectory.

What version of the product are you using? On what operating system?
Tesseract-2.04
AIX 5.3 (oslevel 5300-05) 
GCC 4.2.4

Please provide any additional information below.

Applying the following patch to training/Makefile.am and re-running
automake should fix the problem:

*** Makefile.am.old     Wed Dec  9 10:44:59 2009
--- Makefile.am Wed Dec  9 10:46:21 2009
***************
*** 30,35 ****
--- 30,36 ----
      ../cutil/libtesseract_cutil.a \
      ../ccstruct/libtesseract_ccstruct.a \
      ../viewer/libtesseract_viewer.a \
+     ../ccmain/libtesseract_full.a \
      ../ccutil/libtesseract_ccutil.a
  mftraining_SOURCES = mfTraining.cpp mergenf.cpp
  mftraining_LDADD = \
***************
*** 41,46 ****
--- 42,48 ----
      ../cutil/libtesseract_cutil.a \
      ../ccstruct/libtesseract_ccstruct.a \
      ../viewer/libtesseract_viewer.a \
+     ../ccmain/libtesseract_full.a \
      ../ccutil/libtesseract_ccutil.a
  unicharset_extractor_SOURCES = unicharset_extractor.cpp
  unicharset_extractor_LDADD = \
***************
*** 47,54 ****
--- 49,58 ----
      ../ccutil/libtesseract_ccutil.a
  wordlist2dawg_SOURCES = wordlist2dawg.cpp
  wordlist2dawg_LDADD = \
+     ../classify/libtesseract_classify.a \
      ../dict/libtesseract_dict.a \
      ../cutil/libtesseract_cutil.a \
      ../ccstruct/libtesseract_ccstruct.a \
      ../viewer/libtesseract_viewer.a \
+     ../ccmain/libtesseract_full.a \
      ../ccutil/libtesseract_ccutil.a

Original issue reported on code.google.com by jdccde...@gmail.com on 9 Dec 2009 at 6:53

GoogleCodeExporter commented 9 years ago
Hi jdccdevel,

I patched training/Makefile as outlined, then ran configure, make and install.

1- SUCCESSFULLY PORTED ON MY ISERIES(AS400)!!
2- IT WORKS !!

Thanks.
Beppe.

Original comment by giuseppe...@gmail.com on 24 Feb 2010 at 4:27

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in 3.00.

Original comment by theraysm...@gmail.com on 19 May 2010 at 6:45

GoogleCodeExporter commented 9 years ago
How the heck did you folks deal with the leptonica requirement?

https://code.google.com/p/leptonica/issues/detail?id=73&thanks=73&ts=1358886322

Original comment by hewhocutsdown on 22 Jan 2013 at 8:35

GoogleCodeExporter commented 9 years ago
Leptonica was optional for 2.04, I compiled without it.

Original comment by jdccde...@gmail.com on 22 Jan 2013 at 9:21