t0nyren / python-tesseract

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

Build fails #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Clone python-tesseract repository
2. python config.py
3. python setup.py build

I expect that C++ sources will be build, but instead what I see is:

include path=/usr/include
Current Version : 0.7
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 
-I/usr/include/leptonica -o tesseract_wrap.cpp tesseract.i
tesseract.i:11: Error: Unable to find 'publictypes.h'
tesseract.i:12: Error: Unable to find 'thresholder.h'
tesseract.i:13: Error: Unable to find 'baseapi.h'
error: command 'swig' failed with exit status 1

I am using Ubuntu 11.10, Python 2.7 and the last sources from the repository

As I found out it was because leptonica and tesseract headers were in 
/usr/local/include instead of /usr/include.
To fix this problem I made few changes to setup.py script and made a patch that 
fixed the problem.
I've attached patch to this issue.

Original issue reported on code.google.com by ivan.mus...@gmail.com on 16 Mar 2012 at 8:09

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for your code....

Original comment by FreeT...@gmail.com on 12 Apr 2012 at 3:43

GoogleCodeExporter commented 9 years ago
Tesseract-ocr is now included in the download list
http://code.google.com/p/python-tesseract/downloads/list

Original comment by FreeT...@gmail.com on 12 Apr 2012 at 3:43