Looks like you didn't install the new iulib first; iucstring is a new
class in iulib 0.4

Also, --with-tesseract won't work--there is no Tesseract support.

Tom

On Sat, Jun 6, 2009 at 20:41, Trimble<[email protected]> wrote:
>
> I am trying ocropus 0.4 on OSX 10.4.11.  It doesn't compile.
> I can compile ocropus 0.3 (with several osx-specific patches)
> just fine. I have libpng, libtiff, libjpeg, iulib, and imagemagick.
>
> Is this just another missing dependency?
>
> $ ./build --with-tesseract=/usr/local --without-leptonica
> <snip>
> # please run make now
> $ 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_LIBBLAS=1 -DHAVE_LIBGOMP=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./include -I./ocr-utils -I/usr/local/
> include -I/usr/local/include/tesseract  -I/usr/local/include/tesseract
> -DHAVE_TESSERACT  -I/sw/include -I/opt/include -I/sw/include -I/opt/
> include -fopenmp -Wall -Wno-sign-compare -Wno-write-strings -Wno-
> deprecated -I/sw/include -I/opt/include -fopenmp -MT ocr-binarize-
> otsu.o -MD -MP -MF ".deps/ocr-binarize-otsu.Tpo" -c -o ocr-binarize-
> otsu.o `test -f './ocr-binarize/ocr-binarize-otsu.cc' || echo './'`./
> ocr-binarize/ocr-binarize-otsu.cc; \
> then mv -f ".deps/ocr-binarize-otsu.Tpo" ".deps/ocr-binarize-otsu.Po";
> else rm -f ".deps/ocr-binarize-otsu.Tpo"; exit 1; fi
> In file included from ./include/ocropus.h:31,
>                 from ./ocr-binarize/ocr-binarize-otsu.cc:27:
> ./ocr-utils/components.h:89: error: 'iucstring' does not name a type
> ./ocr-utils/components.h:107: error: 'iucstring' was not declared in
> this scope
> ./ocr-utils/components.h:107: error: template argument 1 is invalid
> ./ocr-utils/components.h: In member function 'virtual void
> ocropus::IComponent::info(int, FILE*)':
> ./ocr-utils/components.h:95: error: 'object_history' was not declared
> in this scope
> ./ocr-utils/components.h: In member function 'virtual void
> ocropus::IComponent::save(FILE*)':
> ./ocr-utils/components.h:100: error: 'Unimplemented' was not declared
> in this scope
> ./ocr-utils/components.h: In member function 'virtual void
> ocropus::IComponent::load(FILE*)':
> ./ocr-utils/components.h:101: error: 'Unimplemented' was not declared
> in this scope
> ./ocr-utils/components.h: In member function 'void
> ocropus::IComponent::pdef(const char*, const char*, const char*)':
> ./ocr-utils/components.h:122: error: 'throwf' was not declared in this
> scope
> ./ocr-utils/components.h:123: error: request for member 'find' in
> '((ocropus::IComponent*)this)->ocropus::IComponent::params', which is
> of non-class type 'int'
> ./ocr-utils/components.h:123: error: 'throwf' was not declared in this
> scope
> ./ocr-utils/components.h:124: error: '((ocropus::IComponent*)this)-
>>ocropus::IComponent::params' cannot be used as a function
> ./ocr-utils/components.h:125: error: 'iucstring' was not declared in
> this scope
> ./ocr-utils/components.h:125: error: expected `;' before 'key'
> ./ocr-utils/components.h:126: error: 'key' was not declared in this
> scope
> ./ocr-utils/components.h:133: error: '((ocropus::IComponent*)this)-
>>ocropus::IComponent::params' cannot be used as a function
> ./ocr-utils/components.h:135: error: 'class colib::strhash<bool>' has
> no member named 'find'
> ./ocr-utils/components.h:138: error: '((ocropus::IComponent*)this)-
>>ocropus::IComponent::params' cannot be used as a function
> ./ocr-utils/components.h:141: error: '((ocropus::IComponent*)this)-
>>ocropus::IComponent::params' cannot be used as a function
> ./ocr-utils/components.h: In member function 'void
> ocropus::IComponent::pdef(const char*, double, const char*)':
> ./ocr-utils/components.h:147: error: 'iucstring' was not declared in
> this scope
> ./ocr-utils/components.h:147: error: expected `;' before 'svalue'
> ./ocr-utils/components.h:148: error: 'svalue' was not declared in this
> scope
> ./ocr-utils/components.h: In member function 'virtual bool
> ocropus::IComponent::pexists(const char*)':
> ./ocr-utils/components.h:159: error: request for member 'find' in
> '((ocropus::IComponent*)this)->ocropus::IComponent::params', which is
> of non-class type 'int'
> ./ocr-utils/components.h: In member function 'virtual void
> ocropus::IComponent::pset(const char*, const char*)':
> ./ocr-utils/components.h:166: error: request for member 'find' in
> '((ocropus::IComponent*)this)->ocropus::IComponent::params', which is
> of non-class type 'int'
> ./ocr-utils/components.h:166: error: 'throwf' was not declared in this
> scope
> ./ocr-utils/components.h:167: error: '((ocropus::IComponent*)this)-
>>ocropus::IComponent::params' cannot be used as a function
> ./ocr-utils/components.h: In member function 'virtual void
> ocropus::IComponent::pset(const char*, double)':
> ./ocr-utils/components.h:172: error: 'iucstring' was not declared in
> this scope
> ./ocr-utils/components.h:172: error: expected `;' before 'svalue'
> ./ocr-utils/components.h:173: error: 'svalue' was not declared in this
> scope
> ./ocr-utils/components.h: In member function 'const char*
> ocropus::IComponent::pget(const char*)':
> ./ocr-utils/components.h:187: error: request for member 'find' in
> '((ocropus::IComponent*)this)->ocropus::IComponent::params', which is
> of non-class type 'int'
> ./ocr-utils/components.h:187: error: 'throwf' was not declared in this
> scope
> ./ocr-utils/components.h:188: error: '((ocropus::IComponent*)this)-
>>ocropus::IComponent::params' cannot be used as a function
> ./ocr-utils/components.h: In member function 'double
> ocropus::IComponent::pgetf(const char*)':
> ./ocr-utils/components.h:194: error: '((ocropus::IComponent*)this)-
>>ocropus::IComponent::params' cannot be used as a function
> ./ocr-utils/components.h:194: error: 'throwf' was not declared in this
> scope
> ./ocr-utils/components.h: In member function 'void
> ocropus::IComponent::psave(FILE*)':
> ./ocr-utils/components.h:201: error: request for member 'keys' in
> '((ocropus::IComponent*)this)->ocropus::IComponent::params', which is
> of non-class type 'int'
> ./ocr-utils/components.h:203: error: '((ocropus::IComponent*)this)-
>>ocropus::IComponent::params' cannot be used as a function
> ./ocr-utils/components.h: In member function 'void
> ocropus::IComponent::pload(FILE*)':
> ./ocr-utils/components.h:217: error: '((ocropus::IComponent*)this)-
>>ocropus::IComponent::params' cannot be used as a function
> ./ocr-utils/components.h: In member function 'void
> ocropus::IComponent::pprint(FILE*, int)':
> ./ocr-utils/components.h:224: error: request for member 'keys' in
> '((ocropus::IComponent*)this)->ocropus::IComponent::params', which is
> of non-class type 'int'
> ./ocr-utils/components.h:227: error: '((ocropus::IComponent*)this)-
>>ocropus::IComponent::params' cannot be used as a function
> ./ocr-utils/components.h: In function 'T* ocropus::make_component
> (const char*)':
> ./ocr-utils/components.h:326: error: there are no arguments to
> 'throwf' that depend on a template parameter, so a declaration of
> 'throwf' must be available
> ./ocr-utils/components.h:326: error: (if you use '-fpermissive', G++
> will accept your code, but allowing the use of an undeclared name is
> deprecated)
> ./ocr-utils/components.h:330: error: there are no arguments to
> 'throwf' that depend on a template parameter, so a declaration of
> 'throwf' must be available
> ./ocr-utils/components.h: In function 'void ocropus::load_component
> (FILE*, colib::autodel<T>&)':
> ./ocr-utils/components.h:352: error: there are no arguments to
> 'throwf' that depend on a template parameter, so a declaration of
> 'throwf' must be available
> In file included from ./include/ocropus.h:64,
>                 from ./ocr-binarize/ocr-binarize-otsu.cc:27:
> ./ocr-utils/logger.h: At global scope:
> ./ocr-utils/logger.h:71: error: 'iucstring' in namespace 'colib' does
> not name a type
> In file included from ./include/ocropus.h:67,
>                 from ./ocr-binarize/ocr-binarize-otsu.cc:27:
> ./ocr-utils/docproc.h:109: error: 'iucstring' was not declared in this
> scope
> ./ocr-utils/docproc.h:109: error: template argument 1 is invalid
> In file included from ./include/ocropus.h:70,
>                 from ./ocr-binarize/ocr-binarize-otsu.cc:27:
> ./ocr-utils/pages.h:34: error: 'iucstring' is not a member of 'colib'
> ./ocr-utils/pages.h:34: error: 'iucstring' is not a member of 'colib'
> ./ocr-utils/pages.h:34: error: template argument 1 is invalid
> ./ocr-utils/pages.h:39: error: 'iucstring' in namespace 'colib' does
> not name a type
> ./ocr-utils/pages.h: In member function 'void ocropus::Pages::clear
> ()':
> ./ocr-utils/pages.h:52: error: request for member 'clear' in
> '((ocropus::Pages*)this)->ocropus::Pages::files', which is of non-
> class type 'int'
> ./ocr-utils/pages.h: In member function 'void ocropus::Pages::addFile
> (const char*)':
> ./ocr-utils/pages.h:55: error: request for member 'push' in
> '((ocropus::Pages*)this)->ocropus::Pages::files', which is of non-
> class type 'int'
> ./ocr-utils/pages.h: In member function 'int ocropus::Pages::length
> ()':
> ./ocr-utils/pages.h:86: error: request for member 'length' in
> '((ocropus::Pages*)this)->ocropus::Pages::files', which is of non-
> class type 'int'
> ./ocr-utils/pages.h: In member function 'void ocropus::Pages::getPage
> (int)':
> ./ocr-utils/pages.h:90: error: 'current_file' was not declared in this
> scope
> ./ocr-utils/pages.h:90: error: invalid types 'int[int]' for array
> subscript
> ./ocr-utils/pages.h: In member function 'bool ocropus::Pages::nextPage
> ()':
> ./ocr-utils/pages.h:95: error: request for member 'length' in
> '((ocropus::Pages*)this)->ocropus::Pages::files', which is of non-
> class type 'int'
> ./ocr-utils/pages.h: In member function 'void ocropus::Pages::loadImage
> ()':
> ./ocr-utils/pages.h:108: error: 'current_file' was not declared in
> this scope
> ./ocr-utils/pages.h: In member function 'const char*
> ocropus::Pages::getFileName()':
> ./ocr-utils/pages.h:127: error: 'current_file' was not declared in
> this scope
> make[1]: *** [ocr-binarize-otsu.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