Comments (6)
I have added the wiki for Centos
http://code.google.com/p/python-tesseract/wiki/HowToCompilePythonTesseractForCen
tos
If u find it useful, buy me a coffee pls
Original comment by [email protected]
on 8 Aug 2012 at 8:58
from python-tesseract.
WOW, thanks so much. I will try it out asap and let you know how it went -and
yes, i will buy you a coffee too -.
Original comment by [email protected]
on 9 Aug 2012 at 12:43
from python-tesseract.
Hi, Free
I just tried your step by step guide for Centos on my EC2 AMI instance, which
is basically a centos.
I find many points in your guide not accurate and not executable, and well, in
the end, I failed to compile python-tesseract :(
please allow me to make some amendments:
1. use `sudo` before `yum`, `cp` commands
2. for installation of opencv 2.4.2, patch is not working and `sed -i.bak
's|libdir=|libdir=/usr/lib64|g' unix-install/opencv.pc` does not make sense
because there is no such file as "unix-install/opencv.pc"
3. in latest tesseract, ` --with-libdir=lib64` is no longer a valid option for
`configure`
4. for commands like `cp -Rf *opencv* /usr/lib64`, I don't quite understand,
why not `ln -sf`? is that a big deal?
5. most importantly for me, I cannot get python-tesseract to build... It gave
me
main_dummy.cpp:22:21: fatal error: tprintf.h: No such file or directory
I checked my /usr/include/tesseract, there is no such file.
Sorry I am new to all these, and I cannot solve this problem on my own, could
you please help me out of this? and maybe fix the doc as well for others?
Thank you for your great work! Eagerly looking forward to your response.
Original comment by [email protected]
on 28 Nov 2012 at 2:35
from python-tesseract.
Fixed
https://code.google.com/p/python-tesseract/wiki/HowToCompilePythonTesseractForCe
ntos
Original comment by [email protected]
on 10 Dec 2012 at 4:51
- Changed state: Fixed
from python-tesseract.
Hi,
Did vincent get a fix to the EC2 AMI install ?
I too am following instrucitons and I'm getting the same error when running the
python setup.py
Please help me as I am so close :-)
Error Message:
$ sudo python setup.py build
os=linux
Current Version : tesseract
===========['stdc++', 'tesseract', 'lept', 'opencv_core']===========
aaaaaaaaaaaaaaaaaaaaaaaaaaa
['.', '/usr/local/include/tesseract', '/usr/local/include/leptonica',
'/usr/local/include/opencv2']
running build
running build_py
copying tesseract.py -> build/lib.linux-x86_64-2.6
running build_ext
building '_tesseract' extension
swigging tesseract.i to tesseract_wrap.cpp
swig -python -c++ -I/usr/local/include/tesseract -I/usr/local/include/leptonica
-o tesseract_wrap.cpp tesseract.i
/usr/local/include/tesseract/publictypes.h:78: Warning 462: Unable to set
dimensionless array variable
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -fPIC -I. -I/usr/local/include/tesseract
-I/usr/local/include/leptonica -I/usr/local/include/opencv2
-I/usr/include/python2.6 -c tesseract_wrap.cpp -o
build/temp.linux-x86_64-2.6/tesseract_wrap.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -fPIC -I. -I/usr/local/include/tesseract
-I/usr/local/include/leptonica -I/usr/local/include/opencv2
-I/usr/include/python2.6 -c main_dummy.cpp -o
build/temp.linux-x86_64-2.6/main_dummy.o
In file included from /usr/include/python2.6/pyconfig.h:6:0,
from /usr/include/python2.6/Python.h:8,
from config.h:9,
from main_dummy.cpp:9:
/usr/include/python2.6/pyconfig-64.h:1034:0: warning: "_POSIX_C_SOURCE"
redefined [enabled by default]
/usr/include/features.h:162:0: note: this is the location of the previous
definition
/usr/include/python2.6/pyconfig-64.h:1043:0: warning: "_XOPEN_SOURCE" redefined
[enabled by default]
/usr/include/features.h:164:0: note: this is the location of the previous
definition
main_dummy.cpp:22:21: fatal error: tprintf.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Original comment by [email protected]
on 25 Jan 2013 at 1:10
from python-tesseract.
Hi,
Solved it after with help of this post:
http://code.google.com/p/python-tesseract/issues/detail?id=20#c14
All i needed to do was
sudo cp ~/tesseract/tesseract-ocr/ccutil/tprintf.h /usr/local/include/tesseract
Original comment by [email protected]
on 25 Jan 2013 at 2:10
from python-tesseract.
Related Issues (20)
- macos 10.9 install python-tesserac homebrew HOT 3
- Compiling from SVN fails HOT 4
- fails on python build HOT 5
- Import Error (DLL load failed: The specified module could not be found) HOT 17
- ..._tesseract.so: undefined symbol: _ZN9tesseract16TessTextRendererC1Ev HOT 4
- APP CRASH HOT 2
- Leptonica 1.71 breaks python-tesseract 0.9-0.3 HOT 5
- Python-tesseract on raspberry pi HOT 24
- 64bit crashes Python HOT 4
- Executing the #ri.BoundingBox(level,x1,y1,x2,y2) command for either words or characters
- Building on Centos 7: invalid conversion from ‘const Pix*’ to ‘Pix*’ HOT 9
- Parameter Requirment HOT 1
- self training combine multi-box HOT 1
- Memory leak HOT 3
- Will it be on PyPI? HOT 1
- import error on Mac OS X 10.9.5 HOT 12
- tesseract has no attribute pixRead HOT 10
- python-tesseract for python 3.x version windows 64b HOT 3
- Fails to compile on Ubuntu Trusty with OpenCV 3
- cvSetData error on import HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-tesseract.