Thank you for sending the steps. I've tried them and get the following
errors from 'make':
Making all in .
if g++ -DPACKAGE_NAME=\"ocropus\" -DPACKAGE_TARNAME=\"ocropus\" -
DPACKAGE_VERSION=\"0.3\" -DPACKAGE_STRING=\"ocropus\ 0.3\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ocropus\" -DVERSION=\"0.3\" -
DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1 -
DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -
DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FLOAT_H=1 -DHAVE_STDINT_H=1 -
DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -
DHAVE_LIBZ=1 -DHAVE_LIBPNG=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -
DHAVE_LIBIULIB=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBTESSERACT_FULL=1 -
DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -
DHAVE_WORKING_FORK=1 -DHAVE_DUP2=1 -DHAVE_MEMSET=1 -DHAVE_SQRT=1 -
DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRRCHR=1 -I. -I. -I./ext/
voronoi -I./ocr-langmods -I./ocr-binarize -I./ocr-bpnet -I./ocr-deskew-
rast -I./ocr-doc-clean -I./ocr-layout-rast -I./ocr-pageseg -I./ocr-
samples -I./ocr-utils -I/usr/local/include/iulib -I/usr/local/include/
colib -I/usr/local/include/colib/.. -I./ocr-tesseract -I/usr/local/
include/tesseract -DHAVE_TESSERACT -I/usr/local/include -I/opt/local/
include -g -O2 -MT voronoi.o -MD -MP -MF ".deps/voronoi.Tpo" -c -o
voronoi.o `test -f './ext/voronoi/voronoi.cc' || echo './'`./ext/
voronoi/voronoi.cc; \
then mv -f ".deps/voronoi.Tpo" ".deps/voronoi.Po"; else rm -f ".deps/
voronoi.Tpo"; exit 1; fi
[...other ./ext/voronoi/*.cc are compiled with similar output...]
if g++ -DPACKAGE_NAME=\"ocropus\" -DPACKAGE_TARNAME=\"ocropus\" -
DPACKAGE_VERSION=\"0.3\" -DPACKAGE_STRING=\"ocropus\ 0.3\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ocropus\" -DVERSION=\"0.3\" -
DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1 -
DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -
DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FLOAT_H=1 -DHAVE_STDINT_H=1 -
DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -
DHAVE_LIBZ=1 -DHAVE_LIBPNG=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -
DHAVE_LIBIULIB=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBTESSERACT_FULL=1 -
DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -
DHAVE_WORKING_FORK=1 -DHAVE_DUP2=1 -DHAVE_MEMSET=1 -DHAVE_SQRT=1 -
DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRRCHR=1 -I. -I. -I./ext/
voronoi -I./ocr-langmods -I./ocr-binarize -I./ocr-bpnet -I./ocr-deskew-
rast -I./ocr-doc-clean -I./ocr-layout-rast -I./ocr-pageseg -I./ocr-
samples -I./ocr-utils -I/usr/local/include/iulib -I/usr/local/include/
colib -I/usr/local/include/colib/.. -I./ocr-tesseract -I/usr/local/
include/tesseract -DHAVE_TESSERACT -I/usr/local/include -I/opt/local/
include -g -O2 -MT voronoi-pageseg.o -MD -MP -MF ".deps/voronoi-
pageseg.Tpo" -c -o voronoi-pageseg.o `test -f './ext/voronoi/voronoi-
pageseg.cc' || echo './'`./ext/voronoi/voronoi-pageseg.cc; \
then mv -f ".deps/voronoi-pageseg.Tpo" ".deps/voronoi-pageseg.Po";
else rm -f ".deps/voronoi-pageseg.Tpo"; exit 1; fi
make[1]: stat: /home/ilya/iupr/installed/include/colib/colib.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/../colib/
checks.h: Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/classifier.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/../colib/
narray.h: Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/smartptr.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/coords.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/misc.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/counted.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/env.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/hash.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/heap.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/../colib/
colib.h: Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/../colib/narray-
ops.h: Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/../colib/narray-
util.h: Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/../colib/
misc.h: Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/nbest.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/nustring.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/objlist.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/
ocrinterfaces.h: Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/quicksort.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/rowarrays.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/strbuf.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/vec2.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imgio.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/io_png.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/io_pbm.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/io_jpeg.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/autoinvert.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imglib.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imgfilters.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imgops.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imggauss.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imgedges.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imgthin.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imgtrace.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imgbrushfire.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imglabels.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imgmap.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imgmorph.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imggraymorph.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imgmisc.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/iulib/imgrescale.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/checks.h: Input/
output error
if g++ -DPACKAGE_NAME=\"ocropus\" -DPACKAGE_TARNAME=\"ocropus\" -
DPACKAGE_VERSION=\"0.3\" -DPACKAGE_STRING=\"ocropus\ 0.3\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ocropus\" -DVERSION=\"0.3\" -
DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1 -
DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -
DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FLOAT_H=1 -DHAVE_STDINT_H=1 -
DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -
DHAVE_LIBZ=1 -DHAVE_LIBPNG=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -
DHAVE_LIBIULIB=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBTESSERACT_FULL=1 -
DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -
DHAVE_WORKING_FORK=1 -DHAVE_DUP2=1 -DHAVE_MEMSET=1 -DHAVE_SQRT=1 -
DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRRCHR=1 -I. -I. -I./ext/
voronoi -I./ocr-langmods -I./ocr-binarize -I./ocr-bpnet -I./ocr-deskew-
rast -I./ocr-doc-clean -I./ocr-layout-rast -I./ocr-pageseg -I./ocr-
samples -I./ocr-utils -I/usr/local/include/iulib -I/usr/local/include/
colib -I/usr/local/include/colib/.. -I./ocr-tesseract -I/usr/local/
include/tesseract -DHAVE_TESSERACT -I/usr/local/include -I/opt/local/
include -g -O2 -MT voronoi-ocropus.o -MD -MP -MF ".deps/voronoi-
ocropus.Tpo" -c -o voronoi-ocropus.o `test -f './ext/voronoi/voronoi-
ocropus.cc' || echo './'`./ext/voronoi/voronoi-ocropus.cc; \
then mv -f ".deps/voronoi-ocropus.Tpo" ".deps/voronoi-ocropus.Po";
else rm -f ".deps/voronoi-ocropus.Tpo"; exit 1; fi
In file included from ./ext/voronoi/defs.h:10,
from ./ext/voronoi/voronoi-ocropus.cc:32:
./ext/voronoi/const.h:37:1: warning: "M_PI" redefined
In file included from /usr/include/math.h:28,
from /usr/local/include/iulib/narray-ops.h:33,
from /usr/local/include/iulib/colib.h:43,
from ./ext/voronoi/voronoi-ocropus.cc:27:
/usr/include/architecture/i386/math.h:533:1: warning: this is the
location of the previous definition
./ocr-utils/narray-io.h:234: error: expected initializer before
‘WARN_DEPRECATED’
./ocr-utils/ocr-utils.h:158: error: expected ‘;’ before
‘WARN_DEPRECATED’
./ocr-utils/ocr-utils.h:164: error: expected initializer before
‘WARN_DEPRECATED’
./ocr-utils/ocr-utils.h:165: error: expected initializer before
‘WARN_DEPRECATED’
./ocr-utils/ocr-utils.h:166: error: expected initializer before
‘WARN_DEPRECATED’
./ocr-utils/ocr-utils.h:168: error: expected initializer before
‘WARN_DEPRECATED’
make[1]: *** [voronoi-ocropus.o] Error 1
make: *** [all-recursive] Error 1
Anybody else get these errors?
Thanks,
Donomo
On Feb 7, 6:51 pm, cyberbryce <[email protected]> wrote:
> I'm no expert on compiling and installing 'NIX software for OS X, but
> I was able to compile on Mac OS X 10.5.6 by making some modifications.
> This may be helpful to others trying to do the same. Further, some
> more informed individuals may be able to translate this into
> appropriate instructions or corrections for a Mac OS install:
>
> I used Fink / Mac Ports to install libpng, libtiff, and then iulib and
> tesserect, but not FST or Leptonica. It is not clear whether I could
> have instead linked to system libraries already present.
>
> I then ran configure for ocropus 0.3 as follows:
> CPPFLAGS='-I/sw/include -I/opt/local/include' LDFLAGS='-L/sw/lib -L/
> opt/local/lib' ./configure --without-fst --without-leptonica
>
> I modified the Makefile in ext/tolua++ so that the ar tool would be
> called without the "f" option which does not exist in ar on OS X, so
> instead of
> $(AR) crf $@ $^
> the ext/tolua++/Makefile contained
> $(AR) cr $@ $^
>
> I modified ext/ocroscript/Makefile so that g++ does not try to pass
> the option -E to the linker, and used the option "-all_load", so
> instead of:
> AM_LDFLAGS = -Wl,-E
> the ext/ocroscript/Makefile contained
> AM_LDFLAGS = -Wl,-all_load
>
> The software produces expected output on the suggested test given by
> configure,
> ocroscript recognize data/pages/alice_1.png
>
> I'll amend this if I conclude the installation was not successful
> after inputtting some of my own files.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ocropus" 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/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---