On Wed, 9 Jun 2010 11:21:18 +0100 "Jimmy O'Regan" <[email protected]> wrote:
> > I've tried it on Gentoo x86 and x86_64 using a rough ebuild and it > > works but I have some concerns. configure.ac seems unusually long > > and includes calls to AC_CHECK_LIB for libpng and libjpeg that > > aren't even needed. > > Thanks for the info, but, frankly, it sounds more like opinion than > fact -- patches welcome. IMO, there aren't /enough/ checks - it's not > currently checking that leptonica has been built with libpng, etc. I > might try it out some time, but it's low on my priority list. Now that I've looked at leptonica and seen that it hasn't been given the libtool treatment either, I partly agree that these additional checks are necessary. I think this is ultimately bad practise though and is the reason why libtool was created. Without the help of libtool archives, who knows what additional libraries some arbitrary static library may or may not require? With leptonica built as a shared library, these are the libraries that Tesseract itself actually requires. # readelf -d /usr/lib/libtesseract_*.so /usr/bin/tesseract | grep NEEDED | grep -v tessarect | sort -u 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [liblept.so.0] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libtiff.so.5] A small patch was uploaded to Gentoo Bugzilla that ports leptonica to libtool. It's a lot simpler than Tesseract. I'd still like to improve it to make support for all the different image formats optional though. I'll report back here when I'm done. Hopefully we can get this committed upstream. James -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" 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/tesseract-ocr?hl=en.

