It builds fine for me (I checked the nightly build log, which builds
from scratch).

However, you might do better with a slightly older version:

hg clone -r 0.4-dev0001 https://iulib.googlecode.com/hg/ iulib
hg clone -r 0.4-dev0001 https://ocropus.googlecode.com/hg/ ocropus

(We're occasionally tagging development versions for people who want
to use the repository version but for whom the tip isn't working.)

Tom


On Mon, Jul 6, 2009 at 20:43, Scott<[email protected]> wrote:
>
> I'm having trouble installing on Ubuntu 9.04.  I have all of the
> dependencies installed already.
> Following the instructions:
> http://code.google.com/p/ocropus/wiki/DevInstall
>
> I'll just dump the scons trace (sorry, my first scons experience):
>
> sc...@desktop:~/tmp/ocropus$ scons
> scons: Reading SConscript files ...
> WARNING: scons not supported on platforms other than Ubuntu 9.04
>
> scons: warning: The PathOption() function is deprecated; use the
> PathVariable() function instead.
> File "/home/scott/tmp/ocropus/SConstruct", line 88, in <module>
> NOTE: compile with high optimization only for production use
> Checking for C++ header file colib/colib.h... yes
> Checking for C++ library iulib... yes
> Checking for C library SDL... yes
> Checking for C library SDL_gfx... yes
> Checking for C library gif... yes
> Checking for C library tiff... yes
> Checking for C library jpeg... yes
> Checking for C library png... yes
> Checking for C library lept... yes
> scons: done reading SConscript files.
> scons: Building targets ...
> g++ -o commands/ocr-distance.o -c -DDATADIR='"/usr/local/share/
> ocropus"' -g -fPIC -O2 -Wall -Wno-sign-compare -Wno-write-strings -
> D__warn_unused_result__=__far__ -D_BACKWARD_BACKWARD_WARNING_H=1 -
> DHAVE_LEPTONICA -I/usr/local/include -I/usr/local/include -I/usr/
> include/leptonica -I/usr/local/include/leptonica -I/usr/local/include/
> leptonica -Iinclude -Iocr-utils commands/ocr-distance.cc
> In file included from include/ocropus.h:31,
>                 from commands/ocr-distance.cc:29:
> 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 commands/ocr-distance.cc:29:
> 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 commands/ocr-distance.cc:29:
> ocr-utils/docproc.h:120: error: 'iucstring' was not declared in this
> scope
> ocr-utils/docproc.h:120: error: template argument 1 is invalid
> In file included from include/ocropus.h:70,
>                 from commands/ocr-distance.cc:29:
> ocr-utils/pages.h:35: error: 'iucstring' was not declared in this
> scope
> ocr-utils/pages.h:35: error: template argument 1 is invalid
> ocr-utils/pages.h:119: error: 'iucstring' has not been declared
> ocr-utils/pages.h: In member function 'virtual void
> ocropus::Pages::info(int, FILE*)':
> ocr-utils/pages.h:110: error: 'iprintf' was not declared in this scope
> ocr-utils/pages.h: In member function 'void ocropus::Pages::clear()':
> ocr-utils/pages.h:117: error: request for member 'clear' in
> '((ocropus::Pages*)this)->ocropus::Pages::files', which is of non-
> class type 'int'
> ocr-utils/pages.h: In static member function 'static bool
> ocropus::Pages::isTiff(int&)':
> ocr-utils/pages.h:120: error: 're_search' was not declared in this
> scope
> ocr-utils/pages.h: In member function 'void ocropus::Pages::addFile
> (const char*)':
> ocr-utils/pages.h:123: error: request for member 'push' in
> '((ocropus::Pages*)this)->ocropus::Pages::files', which is of non-
> class type 'int'
> ocr-utils/pages.h:124: error: request for member 'last' in
> '((ocropus::Pages*)this)->ocropus::Pages::files', which is of non-
> class type 'int'
> ocr-utils/pages.h:124: error: 'Tiff' was not declared in this scope
> ocr-utils/pages.h: In member function 'int ocropus::Pages::length()':
> ocr-utils/pages.h:155: 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 'bool ocropus::Pages::nextPage
> ()':
> ocr-utils/pages.h:169: error: request for member 'length' in
> '((ocropus::Pages*)this)->ocropus::Pages::files', which is of non-
> class type 'int'
> ocr-utils/pages.h:176: 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:191: error: 'iucstring' was not declared in this
> scope
> ocr-utils/pages.h:191: error: 'current_file' was not declared in this
> scope
> ocr-utils/pages.h:191: error: '((ocropus::Pages*)this)-
>>ocropus::Pages::files' cannot be used as a function
> ocr-utils/pages.h:196: error: 'Tiff' was not declared in this scope
> ocr-utils/pages.h: In member function 'const char*
> ocropus::Pages::getFileName()':
> ocr-utils/pages.h:218: error: '((ocropus::Pages*)this)-
>>ocropus::Pages::files' cannot be used as a function
> ocr-utils/components.h: In function 'T* ocropus::make_component(const
> char*) [with T = colib::IBinarize]':
> ocr-utils/components.h:339:   instantiated from 'void
> ocropus::make_component(colib::autodel<T>&, const char*) [with T =
> colib::IBinarize]'
> ocr-utils/pages.h:61:   instantiated from here
> ocr-utils/components.h:326: error: 'throwf' was not declared in this
> scope
> ocr-utils/components.h:330: error: 'throwf' was not declared in this
> scope
> ocr-utils/components.h: In function 'void ocropus::load_component
> (FILE*, colib::autodel<T>&) [with T = colib::ICleanupGray]':
> ocr-utils/components.h:357:   instantiated from 'void
> ocropus::load_component(colib::autodel<T>&, FILE*) [with T =
> colib::ICleanupGray]'
> ocr-utils/pages.h:68:   instantiated from here
> ocr-utils/components.h:352: error: 'throwf' was not declared in this
> scope
> ocr-utils/components.h: In function 'void ocropus::load_component
> (FILE*, colib::autodel<T>&) [with T = colib::ICleanupBinary]':
> ocr-utils/components.h:357:   instantiated from 'void
> ocropus::load_component(colib::autodel<T>&, FILE*) [with T =
> colib::ICleanupBinary]'
> ocr-utils/pages.h:90:   instantiated from here
> ocr-utils/components.h:352: error: 'throwf' was not declared in this
> scope
> scons: *** [commands/ocr-distance.o] Error 1
> scons: building terminated because of errors.
> sc...@desktop:~/tmp/ocropus$
>
> >
>

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