Use latest version of leptonica - 1.74.1 https://github.com/DanBloomberg/leptonica
ShreeDevi ____________________________________________________________ भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com On Mon, Apr 17, 2017 at 8:18 PM, Peter Reid <peter.rei...@gmail.com> wrote: > I've done some further searching and found several versions of shell > scripts that are supposed to generate a standalone version of Tesseract. > However, they all fail at the last part of the process, namely building > Tesseract itself! The script builds the libraries for zlib (v1.2.8), > libpng (v1.6.13), libjpeg (9b) and leptonica (v1.73), but fails with the > following error: > > checking for leptonica... yes > checking for pixCreate in -llept... no > configure: error: leptonica library missing > > I can't find a way to correct this! Here's the config details that lead > to this error: > > export CXXFLAGS="-I$BUILD_DIR/include -I$BUILD_DIR/include/libpng16 > -I$BUILD_DIR/include/leptonica -lpng -ljpeg -lz" > export CPPFLAGS="-I$BUILD_DIR/include -I$BUILD_DIR/include/libpng16 > -I$BUILD_DIR/include/leptonica -lpng -ljpeg -lz" > export LDFLAGS="-L$BUILD_DIR/lib" > export LIBLEPT_HEADERSDIR="$BUILD_DIR/include/leptonica" > > ./configure --prefix=$TESSERACT_DIR --with-extra-libraries=$BUILD_DIR/lib > > [Note: I added the CXXFLAGS as well as the CPPFLAGS as I wasn't sure which > was needed] > > I have attached the latest version of the shell script I'm using so you > can see the context. > > Can anyone fix my script or tell me another way of generating a standalone > version of Tesseract for the Mac? > > Thanks > > > On Thursday, March 24, 2016 at 10:49:03 AM UTC, Peter Reid wrote: >> >> I have a standalone version of tesseract-ocr for Windows that can be run >> from a folder located anywhere in the Windows filing system without having >> to do an installation. For the Mac the user has to install >> HomeBrew/MacPort first and then tesseract-ocr afterwards. This fixes >> tesseract-ocr to particular parts of the OS X filing system, preventing it >> from being relocated and used elsewhere on the Mac. >> >> I'm looking for a standalone/self-contained version of tesseract-ocr for >> the Mac that can be located anywhere and can be run without requiring >> installations. Please can someone point to such a version of tesseract-ocr >> or give instructions on how I can build one of these! >> >> Thanks >> > -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tesseract-ocr+unsubscr...@googlegroups.com. > To post to this group, send email to tesseract-ocr@googlegroups.com. > Visit this group at https://groups.google.com/group/tesseract-ocr. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/tesseract-ocr/e6dbc1e0-1314-47e9-b76c-627db8b6afc4% > 40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/e6dbc1e0-1314-47e9-b76c-627db8b6afc4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscr...@googlegroups.com. To post to this group, send email to tesseract-ocr@googlegroups.com. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduUi%3D0iawsuyf3FPfLNEw1vBFUEXj76ML2Km5N6e-aj%3Ddw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.