On May 27, 7:17 pm, "Jimmy O'Regan" <[email protected]> wrote: > On 27 May 2010 16:33, James Le Cuirot <[email protected]> wrote: > > This will only be necessary when checking out from the repository, > > right? Source releases shouldn't require autotools or libtool to be > > installed. I agree that the generated files shouldn't be committed, > > though shouldn't this also extend to configure and Makefile.in? > > My bad, that's not due to libtool. Nothing extra should need to be > installed, as is. > > Yes, those generated files should be zapped from the repository.
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. Tesseract doesn't use libjpeg directly and even though it includes a bundled copy of png.h from libpng, this isn't referenced anywhere else. If you remove these lines, it still builds fine. Maybe these lines used to be necessary when linking to Leptonica or libtiff statically (haven't tried using Leptonica yet) but if these are also built with libtool then the lines are not needed because libtool archives carry this dependency information. Unnecessary linking can also be avoided by using -Wl,--as-needed but unfortunately libtool has a bug that puts this flag at the end, making it ineffective. Gentoo patches ltmain.sh to work around this but non- Gentoo uses can benefit from this if you patch ltmain.sh beforehand. Since it's not checked into the repository, this would need to be done when creating the source tarball. Here is the patch. http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/ELT-patches/as-needed/2.2.6?view=markup Regards, 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.

