ocropus in windows

3,801 views
Skip to first unread message

nandhu...@gmail.com

unread,
Apr 7, 2009, 10:26:35 AM4/7/09
to ocropus, nandh...@inteleants.com
Hi , i am new in ocropus, i tried to install ocropus application in my
windows xp machine as per folowing links

http://groups.google.com/group/ocropus/web/compiling-ocropus-on-windows


but i am very confused so please any one help intallation proceture
step by step instructions send me link or mail me


Regards
K.Nandha

jhung

unread,
Apr 8, 2009, 11:58:22 AM4/8/09
to ocropus
Hi.

I am about to attempt an installation on Windows. I will let you know
how it goes.

- Jonathan.

---
Fluid Project
ATRC - University of Toronto

On Apr 7, 10:26 am, "nandhukuma...@gmail.com"

nandhukumar krishnamoorthi

unread,
Apr 8, 2009, 11:32:59 PM4/8/09
to ocr...@googlegroups.com
hi Jonathan, thanks for replying me
--
Nandhakumar.k
ph:9962563220
Email:nandhu...@gmail.com
         nandhu...@yahoo.com

nandhukumar krishnamoorthi

unread,
Apr 8, 2009, 11:33:01 PM4/8/09
to ocropus
hi Jonathan, thanks for reply

74yrsold

unread,
Apr 9, 2009, 4:51:05 AM4/9/09
to ocropus
Hi Jonathan,
Trust your are attempting an installation on windows using latest
version (0.4) ocropus?
I wish you success in your good mission.
With regards,
-sriranga(76yrsold)

computer

unread,
Apr 10, 2009, 10:08:44 AM4/10/09
to ocropus
I would really like to install ocropus on Windows to try it out. Can
somebody make a Windows install available on the downloads page (where
install could be just unzipping a ZIP file - it doesn't have to be
fancy)?

I'll watch this thread with interest...

computer

unread,
Apr 10, 2009, 12:19:35 PM4/10/09
to ocropus
I thought I would give this a try myself. The "Compiling Ocropus On
Windows" page is pretty good, although I found a couple of steps
aren't quite right (and some of the steps fail, but I'll post those
details separately). May I suggest some clarifications:

1) >Download and install MSys using the installer

If your build directory has spaces in you need to use the DOS style
representation of the path when telling MSys where the MinGW install
is, e.g. in the fstab
C:/PROGRA~1/MinGW /mingw

You can find out the DOS style name using "dir /x". Better still, use
directories with no spaces!

2) >Build and install static version of ZLib using

For all these steps you need to change into the directory for that
library, e.g. zlib-1.2.3, THEN run the ./configure line. If the ./
configure command fails then maybe you've downloaded the wrong
package?

3) >Download libpng (direct download: 1.2.29)
>Build and install static version of libpng

1.2.29 is not available any more, so I tried libpng-1.2.35-src.zip.
Unfortunately the ./configure step failed. The "-bin" and "-lib"
versions either didn't have everything I needed to build it, or the
build failed too. I'll post the error separately.

4) >Using MinGW

It's worth pointing out how long the steps are expected to take. My
attempts to ./configure some of the libraries (e.g. libpng and
libtiff) took a good 15 minutes each, which means downloading and
building all this stuff takes an elapsed time of around 2 hours (for
somebody with a decent working understanding of Windows and Unix).

computer

unread,
Apr 10, 2009, 12:33:36 PM4/10/09
to ocropus
Here is the ./configure failure I get for libpng-1.2.35-src (I am also
going to try libpng-1.2.33-src to see if that is any different):

configure: pkgconfig directory is ${libdir}/pkgconfig
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libpng.pc
config.status: creating libpng-config
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
make all-am
make[1]: Entering directory `/c/OCR/Ocropus/Build/libpng-1.2.35/src/
libpng/1.2.35/libpng-1.2.35-src'
make[1]: *** No rule to make target `libpng12-dllversion.lo', needed
by `libpng12.la'. Stop.
make[1]: Leaving directory `/c/OCR/Ocropus/Build/libpng-1.2.35/src/
libpng/1.2.35/libpng-1.2.35-src'
make: *** [all] Error 2
make: *** No rule to make target `libpng12-dllversion.lo', needed by
`libpng12.la'. Stop.


My libtiff ./configure failed as well, here are the lines with Error
in them:

C:\PROGRA~1\MinGW\bin\ar.exe: make[2]: *** [libtiff.la] Error 9
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
C:\PROGRA~1\MinGW\bin\ar.exe: make[1]: *** [libtiff.la] Error 9
make: *** [install-recursive] Error 1

computer

unread,
May 9, 2009, 2:53:53 PM5/9/09
to ocropus
In the end I gave up on this as a friend pointed me at a much easier
interface to the tesseract OCR module:
http://code.google.com/p/pytesser/

You can get a proof of concept working in about 10 seconds if you have
Python installed. Here is an example program (make sure you put
pytesser in the same directory as your source, or put it in the Python
lib directory):

from pytesser import *
print image_to_string(Image.open('myinput.jpg'))

I found that a thousand times easier than getting ocropus built!

74yrs old

unread,
May 10, 2009, 7:04:41 AM5/10/09
to ocr...@googlegroups.com
PIL has to be installed in the folder python 2.6 / How to install PIL ?
Reply all
Reply to author
Forward
Message has been deleted
0 new messages