I recommend installing the Mercurial version, which is essentially
OCRopus 0.4.  A lot of things have changed between 0.3 and 0.4 (have a
look at the release notes and the documentation as well).

I have updated ocropus.org to give (minimal) instructions for how to
download and install it.

Tom

On May 5, 10:43 am, shs <[email protected]> wrote:
> Hello ocropus developers,
>
> I hope this is the right place to post problems I'm currently
> experiencing with the installation of ocropus.
>
> I'm trying to compile ocropus 0.3.1 (ocropus-0.3.1.tar.gz) on Ubuntu
> 8.10 (intrepid) 32bit (Linux 2.6.27-11-generic - i686 GNU/Linux)
> following the instructions in the README file.
>
> I installed all the packages listed in the requirements section.
>
> 1) The configure task does not recognize the tesseract installation. I
> have the following tesseract packages installed:
>
> onb...@onbscs-dellnotebook:~/Download/ocropus-0.3$ dpkg -l | grep
> tesser
> ii  tesseract-ocr
> 2.03-2                                  Command line OCR tool
> ii  tesseract-ocr-deu
> 2.00-1                                  tesseract-ocr language files
> for German text
> ii  tesseract-ocr-deu-f
> 2.01-1                                  tesseract-ocr language files
> for the German
> ii  tesseract-ocr-eng
> 2.00-1                                  tesseract-ocr language files
> for English tex
> ii  tesseract-ocr-fra
> 2.00-1                                  tesseract-ocr language files
> for French text
> ii  tesseract-ocr-spa
> 2.00-1                                  tesseract-ocr language files
> for Spanish tex
>
> 2) If I perform ./configure --without-tesseract, I get further
> requirements that are not mentioned in the README file:
>
> configure: error: Could not find openFST! Choose --without-fst if you
> do not want to use it.
>
> 3) If I perform ./configure --without-tesseract --without-fst, I get
> another requirement:
>
> configure: error: Could not find headers for leptonica! You can set
> the path with 'leptheaders=pathtoheaders'. Choose --without-leptonica
> if you do not want to use it.
>
> I installed the leptonica packages:
>
> onb...@onbscs-dellnotebook:~/Download/ocropus-0.3$ dpkg -l | grep
> leptonica
> ii  leptonica-progs
> 1.45-2                                  sample programs for Leptonica
> image processi
> ii  libleptonica
> 1.45-2                                  image processing library
>
> But it does not recognize the installed packages (maybe dev files are
> required?).
>
> 4) Finally, if I perform ./configure --without-tesseract --without-fst
> --without-leptonica, the configure task runs successfully, but the
> subsequent make task fails:
>
> make[1]: Betrete Verzeichnis '/home/onbscs/Download/ocropus-0.3/
> ocroscript'
> if g++ -DPACKAGE_NAME=\"ocropus\" -DPACKAGE_TARNAME=\"ocropus\" -
> DPACKAGE_VERSION=\"0.3\" -DPACKAGE_STRING=\"ocropus\ 0.3\" -
> DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ocropus\" -DVERSION=\"0.3\" -
> DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1 -
> DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
> DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -
> DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FLOAT_H=1 -DHAVE_MALLOC_H=1 -
> DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_WCHAR_H=1 -DHAVE_LIBZ=1 -DHAVE_LIBPNG=1 -DHAVE_LIBJPEG=1 -
> DHAVE_LIBTIFF=1 -DHAVE_LIBIULIB=1 -DHAVE_LIBPTHREAD=1 -DHAVE_FORK=1 -
> DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -
> DHAVE_DUP2=1 -DHAVE_MEMSET=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -
> DHAVE_STRDUP=1 -DHAVE_STRRCHR=1 -I. -I.  -I./../ext/voronoi -I./../
> imgbits -I./../ocr-langmods -I./../ocr-binarize -I./../ocr-bpnet -
> I./../ocr-deskew-rast -I./../ocr-doc-clean -I./../ocr-layout-rast -
> I./../ocr-pageseg -I./../ocr-samples -I./../ocr-utils -I./../ocr-
> leptonica -I/usr/local/include/iulib -I/usr/local/include/colib -I/usr/
> local/include/colib/.. -I./../ext/tolua++ -I./../ext/lua       -g -O2 -
> MT ocr.o -MD -MP -MF ".deps/ocr.Tpo" -c -o ocr.o `test -f './ocr.cc'
> || echo './'`./ocr.cc; \
>         then mv -f ".deps/ocr.Tpo" ".deps/ocr.Po"; else rm -f ".deps/
> ocr.Tpo"; exit 1; fi
> In file included from ./ocr.cc:36:
> ./ocr-util.h:38:23: error: tesseract.h: No such file or directory
> ./ocr.cc:43:29: error: recognized-page.h: No such file or directory
> In file included from ./../ocr-bpnet/confusion-matrix.h:31,
>                  from ./../ocr-utils/logger.h:31,
>                  from ./../ocr-bpnet/charlib.h:30,
>                  from ./ocr.cc:42:
> ./../ocr-bpnet/classmap.h: In member function »void
> ocropus::ClassMap::load(FILE*)«:
> ./../ocr-bpnet/classmap.h:86: Warnung: Der Rückgabewert von »int fscanf
> (FILE*, const char*, ...)«, der mit dem Attribut warn_unused_result
> deklariert wurde, wird ignoriert
> ./../ocr-bpnet/classmap.h:89: Warnung: Der Rückgabewert von »int fscanf
> (FILE*, const char*, ...)«, der mit dem Attribut warn_unused_result
> deklariert wurde, wird ignoriert
> make[1]: *** [ocr.o] Fehler 1
> make[1]: Verlasse Verzeichnis '/home/onbscs/Download/ocropus-0.3/
> ocroscript'
> make: *** [all-recursive] Fehler 1
>
> Could you give me a hint what else is missing here?
>
> Thank you in advance.
>
> Sven Schlarb
--~--~---------~--~----~------------~-------~--~----~
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