In the files section there are patches starting with toautotools* and
ending with the date 20081119 that patch OCRopus and other external
projects to use libtool to build programs and libraries.  I have
tested these patches on Mac OS X 10.5.5 on an Intel Macbook using
Macports and on a PC running Cygwin under Windows XP.  The libraries
are dynamically linked shared libraries.  On Cygwin there are
generated cyg*.dll's in the bin directory.

To apply the patches, suppose one has unpacked ocropus (use the
subversion revision number, which I have currently tested at 1287).
Put the patch toautotools*.diff files in the parent directory of
ocropus.  Suppose one wishes to install in a directory bopt of one's
home directory.  Note the configure call with the CPPFLAGS and LDFLAGS
specified should be on one line.

cd ocropus
patch -p1 < ../toautotools_ocropus_1287_20081119.diff
autoreconf --install --force
./configure --prefix=$HOME/bopt CPPFLAGS=-I$HOME/bopt/include LDFLAGS=-
L$HOME/bopt/lib
make
make install

For Mac OS X using Macports, add /opt/local/include and /opt/local/lib
to CPPFLAGS and LDFLAGS respectively.

Before installing OCRopus, install the other external packages using
the same procedure.  A reasonable order would be leptonlib, openfst,
tesseract-ocr, and iulib.

Leptonlib has a configure flag --enable-prog that will build programs
that might not work well.  But what will work is the test program
cd prog
./ioformats_reg

Openfst has check programs that can be run using
make check
These programs all pass on Mac OS X, but three fail on Cygwin.  I have
not worked out how to enable dlopening modules in Cygwin for openfst.

Tesseract can be tested using
./ccmain/tesseract phototest.tif phototest
cat phototest.txt

Iulib can be tested using
make check

OCRopus can be tested using
cd ocroscript
./run-tests
./run-bigtests

The worst failures are in bigtest-linerec.lua where there are reported
crashes in tesseract and bpnet.  I also get a failure on Mac OS X for
fst-search2 in run-tests.

I have made many changes to OCRopus so that one does not need to ever
append to what the user specifies in CPPFLAGS or LDFLAGS.  In
particular, the interface to iulib is
#include <colib/colib.h>
#include <iulib/imglib.h>
#include <iulib/imgio.h>
I have also simplified the configure.ac scripts so that the external
project information appears at the bottom where it is more likely to
be noticed.

I place all patches in the files section in the Public Domain and
disclaim any copyright claim, making no promises or warranties for
fitness, usability, etc.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to