Comments (5)
Linux 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 x86_64
GNU/Linux
Original comment by [email protected]
on 24 Apr 2012 at 8:56
from python-tesseract.
You need to install libtesseract-dev
sudo apt-get install libtesseract-dev libleptonica-dev python-all-dev swig
libcv-dev
Details please refer to
http://code.google.com/p/python-tesseract/wiki/HowToCompilePythonTesseract
Original comment by [email protected]
on 25 Apr 2012 at 3:08
from python-tesseract.
Hi,
No luck :-( I was in fact missing the OpenCV dependencies which I installed
(from a PPA which provides v2.3)
someone@somewhere:~/Downloads/tesseract/new/python-tesseract$ sudo apt-get
install libtesseract-dev libleptonica-dev python-all-dev swig libcv-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-all-dev is already the newest version.
swig is already the newest version.
libleptonica-dev is already the newest version.
libtesseract-dev is already the newest version.
The following NEW packages will be installed:
libcv-dev
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 11.8 kB of archives.
After this operation, 77.8 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ppa.launchpad.net/gijzelaar/opencv2.3/ubuntu/ oneiric/main
libcv-dev amd64 2.3.1-4ppa1 [11.8 kB]
Fetched 11.8 kB in 0s (21.8 kB/s)
Selecting previously deselected package libcv-dev.
(Reading database ... 353106 files and directories currently installed.)
Unpacking libcv-dev (from .../libcv-dev_2.3.1-4ppa1_amd64.deb) ...
Setting up libcv-dev (2.3.1-4ppa1) ...
And then attempted to build as per the wiki...
someone@somewhere:~/Downloads/tesseract/new/python-tesseract$ python config.py
someone@somewhere:~/Downloads/tesseract/new/python-tesseract$ python setup.py
clean
Current Version : tesseract
===========['stdc++', 'tesseract', 'lept', 'opencv_core']===========
running clean
someone@somewhere:~/Downloads/tesseract/new/python-tesseract$ python setup.py
build
Current Version : tesseract
===========['stdc++', 'tesseract', 'lept', 'opencv_core']===========
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/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/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]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I. -I/usr/include/tesseract -I/usr/include/leptonica
-I/usr/include/python2.7 -c main_dummy.cpp -o
build/temp.linux-x86_64-2.7/main_dummy.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for
Ada/C/ObjC but not for C++ [enabled by default]
main_dummy.cpp:1:20: fatal error: mfcpch.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Any thoughts?
Original comment by [email protected]
on 25 Apr 2012 at 5:21
from python-tesseract.
try comment out mfcpch.h in main_dummy.cpp.
It is not a must in Unix
Original comment by [email protected]
on 26 Apr 2012 at 1:44
from python-tesseract.
Original comment by [email protected]
on 3 May 2012 at 4:50
- Changed state: Fixed
from python-tesseract.
Related Issues (20)
- fails on python build HOT 5
- Import Error (DLL load failed: The specified module could not be found) HOT 18
- ..._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 13
- 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
- Can't install on OSX
- python compatibility to win7 not avalaible in win7
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.