As the maintainer of leptonica, I must point out that it is absolutely
trivial to link leptonica with other libraries and apps. leptonica
will link
statically or dynamically in both linux and windows. There is no
valid reason for ocropus to maintain a distribution with build
failures when linking leptonica.
These error messages suggest that the include files are not being
handled properly. The file environ.h gives the typedef for l_int32.
The file alltypes.h first includes environ.h and then the other files
such as queue.h. And the file allheaders.h includes alltypes.h
and all the function prototypes.
So in your program, you only need to include:
#include allheaders.h
and that's it.
We also provide two ways to build the leptonica library:
(1) autoconf -- the standard way
(2) using static makefiles -- these are handbuilt; useful for
developers
The leptonica library can be used without any external dependences, or
with
dependencies on any of these: libpng, libjpeg, libtiff, libz
The library is supported by me, as well as by experts in Windows
VS builds and autoconf tools.
The bottom line is that there should be no issues building or
linking to applications. I repeat: there really is no excuse for
ocropus, which
bills itself as a glue for putting tools together, to have any of
these
maintenance issues.
Tom Breuel has stated on several occasions that he wants to
remove leptonica from ocropus, and now he has done it.
His timing is poor. The next version of Tesseract, 3.0.1,
will have leptonica integrated with the system.
For any of you who are interesting in doing document image
analysis, either for fun or professionally, check out the latest
version of leptonica, 1.67, which you can get from either:
www.leptonica.org
code.google.com/p/leptonica
Build the library and the 200 or so programs in the prog directory
and have some fun!
-- Dan
On Nov 14, 10:56 pm, Tom <[email protected]> wrote:
> That's probably a version mismatch between Leptonica and OCRopus.
>
> We have removed the Leptonica dependency in the latest Mercurial
> version.
>
> Tom
>
> On Nov 11, 7:24 pm, michael <[email protected]> wrote:
>
> > Hi,
>
> > I cannot build the latest version (4.4) of ocropus on Debian (x86_64).
> > I am using the latest version of all packages and successfully built
> > and installed the development version of iulib distrbuted with the
> > ocropus source code.
>
> > The compilation of ocropus fails in leptonica:
> > (snip)
>
> > g++ -o ocr-layout/ocr-char-stats.o -c -g -fPIC -O3 -Wall -Wno-sign-
> > compare -Wno-write-strings -D__warn_unused_result__=__far__ -
> > D_BACKWARD_BACKWARD_WARNING_H=1 -fopenmp -DHAVE_LEPTONICA -I/usr/local/
> > include -I/usr/local/include -I/usr/include/leptonica -I/usr/local/
> > include/leptonica -I/usr/local/include/leptonica -Iinclude -Iocr-utils
> > ocr-layout/ocr-char-stats.cc
> > In file included from include/ocropus.h:71,
> > from commands/ocr-distance.cc:29:
> > /usr/include/leptonica/queue.h:52: error: 'l_int32' does not name a
> > type
> > /usr/include/leptonica/queue.h:53: error: 'l_int32' does not name a
> > type
> > /usr/include/leptonica/queue.h:55: error: 'l_int32' does not name a
> > type
> > In file included from include/ocropus.h:71,
> > from ocr-layout/ocr-detect-columns.cc:26:
> > /usr/include/leptonica/queue.h:52: error: 'l_int32' does not name a
> > type
> > /usr/include/leptonica/queue.h:53: error: 'l_int32' does not name a
> > type
> > /usr/include/leptonica/queue.h:55: error: 'l_int32' does not name a
> > type
> > scons: *** [commands/ocr-distance.o] Error 1
> > In file included from include/ocropus.h:71,
> > from ocr-layout/ocr-text-image-seg.cc:26:
> > /usr/include/leptonica/queue.h:52: error: 'l_int32' does not name a
> > type
> > /usr/include/leptonica/queue.h:53: error: 'l_int32' does not name a
> > type
> > /usr/include/leptonica/queue.h:55: error: 'l_int32' does not name a
> > type
> > In file included from include/ocropus.h:71,
> > from ocr-layout/ocr-char-stats.cc:26:
> > /usr/include/leptonica/queue.h:52: error: 'l_int32' does not name a
> > type
> > /usr/include/leptonica/queue.h:53: error: 'l_int32' does not name a
> > type
> > /usr/include/leptonica/queue.h:55: error: 'l_int32' does not name a
> > type
> > scons: *** [ocr-layout/ocr-detect-columns.o] Error 1
> > scons: *** [ocr-layout/ocr-text-image-seg.o] Error 1
> > scons: *** [ocr-layout/ocr-char-stats.o] Error 1
> > scons: building terminated because of errors.
>
> > Any ideas?
>
> > Thanks,
>
> > Michael
--
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.