yxm4109 / python-tesseract

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

Compiling from SVN fails #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When compiling from sources from a fresh SVN checkout via 
https://code.google.com/p/python-tesseract/wiki/HowToCompile I get the 
following error:

$ python2.7 setup.py build
[...]
===========['stdc++', 'tesseract', 'lept', 'opencv_videostab', 
'opencv_contrib', 'm', 'opencv_core', 'opencv_objdetect', 'pthread', 
'opencv_highgui', 'rt', 'opencv_flann', 'opencv_stitching', 
'opencv_features2d', 'dl', 'opencv_nonfree', 'opencv_ocl', 'opencv_calib3d', 
'opencv_superres', 'tbb', 'opencv_ml', 'opencv_imgproc', 'opencv_legacy', 
'opencv_video', 'opencv_ts', 'opencv_gpu', 'opencv_photo']===========
['.']
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!
mincl='/usr/include/tesseract'

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!
mincl='/usr/include/leptonica'

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!
mincl='/usr/include/opencv2'

running build
running build_py
running build_ext
building '_tesseract' extension
swigging tesseract.i to tesseract_wrap.cpp
swig -python -c++ -I/usr/include/tesseract -I/usr/include/leptonica 
-I/usr/include/opencv2 -o tesseract_wrap.cpp tesseract.i
tesseract.i:70: Error: Unable to find 'renderer.h'
error: command 'swig' failed with exit status 1

Original issue reported on code.google.com by bfitserv...@gmail.com on 23 May 2014 at 5:44

GoogleCodeExporter commented 9 years ago
The same error occurs when using
$ python2.7 setup2.py  build

Via svn log --verbose I could not locate a commit in which renderer.h has been 
deleted, so I am a bit stuck right now. Maybe anyone of you can point me in the 
right direction?

Original comment by bfitserv...@gmail.com on 23 May 2014 at 5:50

GoogleCodeExporter commented 9 years ago
I have now tried various version and steps listed in different compile guides - 
it does not work. The tips from 
https://code.google.com/p/python-tesseract/issues/detail?id=20 seem outdated, 
most files do not exist any more and/or the same error is reproduces.

I am on Arch linux and using 
$ tesseract --version
tesseract 3.02.02
 leptonica-1.69
  libgif 4.1.6 : libjpeg 8d : libpng 1.6.10 : libtiff 4.0.3 : zlib 1.2.8

Original comment by bfitserv...@gmail.com on 23 May 2014 at 6:20

GoogleCodeExporter commented 9 years ago
Manually install tesseract 3.03 will fix the problem

https://bitbucket.org/3togo/python-tesseract/downloads/tesseract-3.03-rc1.tar.gz

Original comment by FreeT...@gmail.com on 24 May 2014 at 10:03

GoogleCodeExporter commented 9 years ago

Original comment by FreeT...@gmail.com on 11 Jun 2014 at 8:37