t0nyren / python-tesseract

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

Build fails on Ubuntu 11.10 AMD64 (opencv/cv.h: No such file or directory) #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to build from python-tesseract-0.7.2 from SVN on Ubuntu 11.10

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

python setup.py build
include path=/usr/include
Current Version : 0.7.2
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying tesseract.py -> build/lib.linux-x86_64-2.7
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
/usr/include/tesseract/publictypes.h:78: Warning(462): Unable to set 
dimensionless array variable
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I. -I/usr/include/tesseract -I/usr/include 
-I/usr/include/leptonica -I/usr/include/python2.7 -c tesseract_wrap.cpp -o 
build/temp.linux-x86_64-2.7/tesseract_wrap.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for 
Ada/C/ObjC but not for C++ [enabled by default]
In file included from tesseract_wrap.cpp:2822:0:
main_dummy.h:1:23: fatal error: opencv/cv.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
petert@alertpay-dev-20:~/Downloads/tesseract/python-tesseract-read-only/python-t
esseract-0.7.2$ 

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

python-tesseract-0.7.2 from SVN 
Ubuntu 11.10 AMD64 (3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 
x86_64 x86_64 x86_64 GNU/Linux)

Please provide any additional information below.

Original issue reported on code.google.com by peter.ta...@taypeinternational.com on 19 Apr 2012 at 8:29

GoogleCodeExporter commented 9 years ago
try

sudo apt-get install  libcv-dev

Original comment by FreeT...@gmail.com on 19 Apr 2012 at 11:04

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 22 Apr 2012 at 5:38