I am able to successfully run "configure" after installing
dependencies jpeg, libpng, tiff and tesseract via macports. However
make fails. Attached is the log. Any insight would be greatly
appreciated!

successful configure as follows:

yong-woos-macbook-pro:ocropus-0.3 yongwoo$ sudo ./configure CPPFLAGS="-
I/opt/local/include/" LDFLAGS="-L/opt/local/lib" --without-fst --
without-leptonica
Password:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for /usr/local/include/iulib/imgio.h... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for unistd.h... (cached) yes
checking for compress in -lz... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_sig_cmp in -lpng... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_std_error in -ljpeg... yes
checking for TIFFOpen in -ltiff... yes
checking for exit in -liulib... yes
checking for pthread_create in -lpthread... yes
checking for err_exit in -ltesseract_full... yes
checking for readline in -leditline... no
checking for SDL_Init in -lSDL... no
checking for rotozoomSurface in -lSDL_gfx... no
checking for int64_t... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for dup2... yes
checking for memset... yes
checking for sqrt... yes
checking for strchr... yes
checking for strdup... yes
checking for strrchr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ocroscript/Makefile
config.status: creating ext/tolua++/Makefile
config.status: creating ext/lua/Makefile
config.status: executing depfiles commands

OK! You can build and install OCRopus the usual way:

    make
    sudo make install


To recognize something, you can use

    ocroscript recognize data/pages/alice_1.png






make fails:

yong-woos-macbook-pro:ocropus-0.3 yongwoo$ make
Making all in .
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/narray.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/narray-util.h:
Input/output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/checks.h: Input/
output error
make[1]: stat: /home/ilya/iupr/installed/include/colib/iarith.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/opt/local/include/  -g -O2 -MT
tesseract.o -MD -MP -MF ".deps/tesseract.Tpo" -c -o tesseract.o `test -
f './ocr-tesseract/tesseract.cc' || echo './'`./ocr-tesseract/
tesseract.cc; \
        then mv -f ".deps/tesseract.Tpo" ".deps/tesseract.Po"; else rm -f
".deps/tesseract.Tpo"; exit 1; fi
./ocr-tesseract/tesseract.cc:32:22: error: tordvars.h: No such file or
directory
./ocr-tesseract/tesseract.cc:33:21: error: control.h: No such file or
directory
./ocr-tesseract/tesseract.cc:34:22: error: tessvars.h: No such file or
directory
./ocr-tesseract/tesseract.cc:35:21: error: tessbox.h: No such file or
directory
./ocr-tesseract/tesseract.cc:36:22: error: tessedit.h: No such file or
directory
./ocr-tesseract/tesseract.cc:37:18: error: imgs.h: No such file or
directory
./ocr-tesseract/tesseract.cc:38:21: error: edgblob.h: No such file or
directory
./ocr-tesseract/tesseract.cc:39:21: error: makerow.h: No such file or
directory
./ocr-tesseract/tesseract.cc:40:21: error: wordseg.h: No such file or
directory
./ocr-tesseract/tesseract.cc:41:20: error: output.h: No such file or
directory
./ocr-tesseract/tesseract.cc:42:21: error: tstruct.h: No such file or
directory
./ocr-tesseract/tesseract.cc:43:21: error: tessout.h: No such file or
directory
./ocr-tesseract/tesseract.cc:44:19: error: tface.h: No such file or
directory
./ocr-tesseract/tesseract.cc:45:24: error: adaptmatch.h: No such file
or directory
./ocr-tesseract/tesseract.cc:46:21: error: baseapi.h: No such file or
directory
./ocr-tesseract/tesseract.cc:47:21: error: globals.h: No such file or
directory
./ocr-tesseract/tesseract.cc:81: error: ISO C++ forbids declaration of
‘BOOL_VAR_H’ with no type
./ocr-tesseract/tesseract.cc:81: warning: ‘BOOL_VAR_H’ initialized and
declared ‘extern’
./ocr-tesseract/tesseract.cc:81: error: ‘textord_ocropus_mode’ was not
declared in this scope
./ocr-tesseract/tesseract.cc:81: error: ‘FALSE’ was not declared in
this scope
./ocr-tesseract/tesseract.cc:81: error: initializer expression list
treated as compound expression
./ocr-tesseract/tesseract.cc:209: error: expected constructor,
destructor, or type conversion before ‘*’ token
./ocr-tesseract/tesseract.cc:237: error: expected class-name before
‘{’ token
./ocr-tesseract/tesseract.cc:264: error: ‘PAGE_RES’ has not been
declared
./ocr-tesseract/tesseract.cc: In member function ‘void
ocropus::TesseractWrapper::pass_grayscale_image_to_tesseract
(colib::bytearray&)’:
./ocr-tesseract/tesseract.cc:254: error: ‘CopyImageToTesseract’ was
not declared in this scope
./ocr-tesseract/tesseract.cc: In member function ‘void
ocropus::TesseractWrapper::extract_result_from_PAGE_RES
(colib::nustring&, colib::narray<colib::rectangle>&,
colib::floatarray&, int&)’:
./ocr-tesseract/tesseract.cc:274: error: ‘TesseractExtractResult’ was
not declared in this scope
./ocr-tesseract/tesseract.cc: In member function ‘void
ocropus::TesseractWrapper::adapt(colib::bytearray&, int, float, float,
float, float)’:
./ocr-tesseract/tesseract.cc:315: error: ‘unicharset’ was not declared
in this scope
./ocr-tesseract/tesseract.cc:322: error: ‘AdaptToCharacter’ was not
declared in this scope
./ocr-tesseract/tesseract.cc: In constructor
‘ocropus::TesseractWrapper::TesseractWrapper(const char*)’:
./ocr-tesseract/tesseract.cc:340: error: ‘InitWithLanguage’ was not
declared in this scope
./ocr-tesseract/tesseract.cc:346: error: ‘set_pass1’ was not declared
in this scope
./ocr-tesseract/tesseract.cc: In destructor ‘virtual
ocropus::TesseractWrapper::~TesseractWrapper()’:
./ocr-tesseract/tesseract.cc:353: error: ‘ClearAdaptiveClassifier’ was
not declared in this scope
./ocr-tesseract/tesseract.cc:355: error: ‘End’ was not declared in
this scope
./ocr-tesseract/tesseract.cc: In member function ‘virtual void
ocropus::TesseractWrapper::recognize_gray(colib::nustring&,
colib::floatarray&, colib::narray<colib::rectangle>&,
colib::bytearray&)’:
./ocr-tesseract/tesseract.cc:376: error: ‘BLOCK_LIST’ was not declared
in this scope
./ocr-tesseract/tesseract.cc:376: error: expected `;' before ‘blocks’
./ocr-tesseract/tesseract.cc:377: error: ‘blocks’ was not declared in
this scope
./ocr-tesseract/tesseract.cc:377: error: ‘FindLines’ was not declared
in this scope
./ocr-tesseract/tesseract.cc:379: error: ‘DumpPGM’ was not declared in
this scope
./ocr-tesseract/tesseract.cc:381: error: ‘WERD’ was not declared in
this scope
./ocr-tesseract/tesseract.cc:381: error: template argument 1 is
invalid
./ocr-tesseract/tesseract.cc:381: error: template argument 1 is
invalid
./ocr-tesseract/tesseract.cc:381: error: invalid type in declaration
before ‘;’ token
./ocr-tesseract/tesseract.cc:384: error: ‘PAGE_RES’ was not declared
in this scope
./ocr-tesseract/tesseract.cc:384: error: expected `;' before
‘page_res’
./ocr-tesseract/tesseract.cc:385: error: ‘PAGE_RES_IT’ was not
declared in this scope
./ocr-tesseract/tesseract.cc:385: error: expected `;' before
‘page_res_it’
./ocr-tesseract/tesseract.cc:386: error: ‘page_res_it’ was not
declared in this scope
./ocr-tesseract/tesseract.cc:387: error: ‘WERD_RES’ was not declared
in this scope
./ocr-tesseract/tesseract.cc:387: error: ‘word’ was not declared in
this scope
./ocr-tesseract/tesseract.cc:388: error: ‘ROW’ was not declared in
this scope
./ocr-tesseract/tesseract.cc:388: error: ‘row’ was not declared in
this scope
./ocr-tesseract/tesseract.cc:390: error: ‘matcher_pass’ was not
declared in this scope
./ocr-tesseract/tesseract.cc:391: error: ‘bln_word’ was not declared
in this scope
./ocr-tesseract/tesseract.cc:392: error: ‘make_bln_copy’ was not
declared in this scope
./ocr-tesseract/tesseract.cc:393: error: request for member ‘push’ in
‘bln_words’, which is of non-class type ‘int’
./ocr-tesseract/tesseract.cc:394: error: ‘BLOB_CHOICE_LIST_CLIST’ was
not declared in this scope
./ocr-tesseract/tesseract.cc:394: error: expected `;' before
‘blob_choices’
./ocr-tesseract/tesseract.cc:402: error: ‘tess_default_matcher’ was
not declared in this scope
./ocr-tesseract/tesseract.cc:403: error: ‘blob_choices’ was not
declared in this scope
./ocr-tesseract/tesseract.cc:404: error: ‘tess_segment_pass1’ was not
declared in this scope
./ocr-tesseract/tesseract.cc:407: error: ‘tess_default_matcher’ was
not declared in this scope
./ocr-tesseract/tesseract.cc:408: error: ‘blob_choices’ was not
declared in this scope
./ocr-tesseract/tesseract.cc:409: error: ‘tess_segment_pass2’ was not
declared in this scope
./ocr-tesseract/tesseract.cc:422: error: ‘page_res’ was not declared
in this scope
./ocr-tesseract/tesseract.cc: In member function ‘void
ocropus::TesseractWrapper::train(colib::nustring&, colib::intarray&)’:
./ocr-tesseract/tesseract.cc:478: error: ‘set_pass1’ was not declared
in this scope
./ocr-tesseract/tesseract.cc: In member function ‘void
ocropus::TesseractWrapper::tesseract_recognize_blockwise
(colib::narray<colib::rectangle>&, colib::narray<colib::nustring>&,
colib::narray<colib::narray<colib::rectangle> >&,
colib::narray<colib::floatarray>&, colib::bytearray&,
colib::intarray&)’:
./ocr-tesseract/tesseract.cc:552: error: ‘BLOCK_LIST’ was not declared
in this scope
./ocr-tesseract/tesseract.cc:552: error: template argument 1 is
invalid
./ocr-tesseract/tesseract.cc:552: error: invalid type in declaration
before ‘(’ token
./ocr-tesseract/tesseract.cc:553: error: ‘PAGE_RES’ was not declared
in this scope
./ocr-tesseract/tesseract.cc:553: error: template argument 1 is
invalid
./ocr-tesseract/tesseract.cc:553: error: invalid type in declaration
before ‘(’ token
./ocr-tesseract/tesseract.cc:554: error: expected type-specifier
before ‘BLOCK_LIST’
./ocr-tesseract/tesseract.cc:554: error: expected `>' before
‘BLOCK_LIST’
./ocr-tesseract/tesseract.cc:554: error: expected `(' before
‘BLOCK_LIST’
./ocr-tesseract/tesseract.cc:554: error: expected primary-expression
before ‘>’ token
./ocr-tesseract/tesseract.cc:555: error: expected type-specifier
before ‘PAGE_RES’
./ocr-tesseract/tesseract.cc:555: error: expected `>' before
‘PAGE_RES’
./ocr-tesseract/tesseract.cc:555: error: expected `(' before
‘PAGE_RES’
./ocr-tesseract/tesseract.cc:555: error: expected primary-expression
before ‘>’ token
./ocr-tesseract/tesseract.cc:582: error: invalid types ‘int[int]’ for
array subscript
./ocr-tesseract/tesseract.cc:582: error: ‘TessBaseAPI’ has not been
declared
./ocr-tesseract/tesseract.cc:582: error: ‘FindLinesCreateBlockList’
was not declared in this scope
./ocr-tesseract/tesseract.cc:583: error: invalid types ‘int[int]’ for
array subscript
./ocr-tesseract/tesseract.cc:583: error: ‘TessBaseAPI’ has not been
declared
./ocr-tesseract/tesseract.cc:583: error: invalid types ‘int[int]’ for
array subscript
./ocr-tesseract/tesseract.cc:583: error: ‘RecognitionPass1’ was not
declared in this scope
./ocr-tesseract/tesseract.cc:602: error: invalid types ‘int[int]’ for
array subscript
./ocr-tesseract/tesseract.cc:602: error: ‘TessBaseAPI’ has not been
declared
./ocr-tesseract/tesseract.cc:602: error: invalid types ‘int[int]’ for
array subscript
./ocr-tesseract/tesseract.cc:602: error: invalid types ‘int[int]’ for
array subscript
./ocr-tesseract/tesseract.cc:602: error: ‘RecognitionPass2’ was not
declared in this scope
./ocr-tesseract/tesseract.cc:606: error: invalid types ‘int[int]’ for
array subscript
./ocr-tesseract/tesseract.cc:607: error: invalid types ‘int[int]’ for
array subscript
./ocr-tesseract/tesseract.cc:607: error: ‘DeleteBlockList’ was not
declared in this scope
./ocr-tesseract/tesseract.cc: In function ‘void
ocropus::tesseract_init_with_language(const char*)’:
./ocr-tesseract/tesseract.cc:791: error: ‘TessBaseAPI’ has not been
declared
./ocr-tesseract/tesseract.cc:791: error: ‘InitWithLanguage’ was not
declared in this scope
./ocr-tesseract/tesseract.cc: In function ‘char*
ocropus::tesseract_rectangle(colib::bytearray&, int, int, int, int)’:
./ocr-tesseract/tesseract.cc:808: error: ‘TessBaseAPI’ has not been
declared
./ocr-tesseract/tesseract.cc:808: error: ‘TesseractRect’ was not
declared in this scope
./ocr-tesseract/tesseract.cc: In function ‘void ocropus::tesseract_end
()’:
./ocr-tesseract/tesseract.cc:822: error: ‘TessBaseAPI’ has not been
declared
./ocr-tesseract/tesseract.cc:822: error: ‘End’ was not declared in
this scope
make[1]: *** [tesseract.o] Error 1
make: *** [all-recursive] Error 1

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to