I'm trying to build Tesseract 3, namely version 3.05.00 or thereabouts.

In fact I started trying to build using the latest versions of all the libs 
but had several failures, so I've backtracked to earlier versions in order 
to get successful builds.  The latest release versions are the following I 
think:

ZLIB_VERSION=1.2.11
LIBJPEG_VERSION=9b
LIBPNG_VERSION=1.6.29
LEPTONICA_VERSION=1.74.01
TESSERACT_VERSION=3.05.00

My latest attempt succeeded to build zlib and libjpeg but failed with 
libpng:

Undefined symbols for architecture x86_64:
  "_inflateValidate", referenced from:
      _png_inflate_claim in pngrutil.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
make[1]: *** [libpng16.la] Error 1
make: *** [check] Error 2

I've looked at the link about compiling Tesseract but it describes MacPort 
and HomeBrew only for Mac deployment, which do not generate standalone 
tesseract binaries.  My apps need to include a runnable version of 
tesseract that doesn't require any installation.  I can do this for Windows 
as the compiling web page gives the details, but I'm having to try to build 
the standalone version for the Mac myself.  This is why I'm going through 
this process!

Thanks again

Peter

On Tuesday, April 18, 2017 at 10:15:50 AM UTC+1, shree wrote:
>
> Please see https://github.com/tesseract-ocr/tesseract/wiki/Compiling
>
>
> If you are building tesseract 4.0, you need Lept 1.74
>
> ShreeDevi
> ____________________________________________________________
> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
>
> On Tue, Apr 18, 2017 at 2:25 PM, Peter Reid <peter....@gmail.com 
> <javascript:>> wrote:
>
>> Hi ShreeDevi
>>
>> I have tried the latest version of Leptonica but I get numerous warnings 
>> (38 of them, mainly about implicit function definitions) and a fatal error 
>> 'endian.h' not found.  The build finishes saying that Leptonica has been 
>> built OK and its library appears in the lib folder.  However, when I try to 
>> build Tesseract, I get the following error:
>>
>> checking for leptonica... yes
>> checking for pixCreate in -llept... no
>> configure: error: leptonica library missing
>> Configuration done, now Building
>> make: Nothing to be done for `install'.
>> Tesseract build failed. Exiting.
>>
>> So I'm not better off with the latest version.  At least with version 
>> 1.73 I don't get the warnings and error messages when building Leptonica 
>> even though the Tesseract build fails.
>>
>> Thanks
>>
>> Peter
>>
>>
>> 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-oc...@googlegroups.com <javascript:>.
>> To post to this group, send email to tesser...@googlegroups.com 
>> <javascript:>.
>> 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/a0bdea5e-9e44-4a0e-b343-e0322fffe9c3%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tesseract-ocr/a0bdea5e-9e44-4a0e-b343-e0322fffe9c3%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/909583a3-23e2-4543-a9a6-30c4dd8c6037%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to