dlareklami / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

Tesseract doesn't build in OS X because fmemopen doesn't available #1150

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Try to compile the latest trunk (rev 1092) with in Mac OS X

What is the expected output?

The compilation completes without errors.

What do you see instead?

imagedata.cpp:367: error: 'fmemopen' was not declared in this scope
make[3]: *** [ambigs.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

ImageData class, added recently in r1061 
https://code.google.com/p/tesseract-ocr/source/detail?spec=svn1093&r=1061 uses 
fmemopen again which isn't available on Mac OS X.
In the past, fmemopen has been removed in order to fix compatibility issues. 
See 
https://code.google.com/p/tesseract-ocr/issues/detail?id=990&can=1&q=fmemopen

Original issue reported on code.google.com by maximums...@googlemail.com on 5 May 2014 at 12:28

GoogleCodeExporter commented 9 years ago
imagedata.cpp, imagedata.h  is not used yet (svn r1093) in tesseract, so files 
can be skipped (Just remove them from ccstruct/Makefile.am and run ./autogen.sh)

Original comment by zde...@gmail.com on 5 May 2014 at 8:39

GoogleCodeExporter commented 9 years ago
fixed in r1096

Original comment by zde...@gmail.com on 7 May 2014 at 9:06