Hi all,
I am trying to install ocropus on my MB running mac os x 10.5.7. I
followed the guide that's available, and applied the patch regarding
"extern char **environ;" in components.cc.
I then run build like so:
$ ./build --prefix=/local --with-iulib=/local --without-SDL --without-
tesseract --without-leptonica --without-OpenMP
# generating Makefile.am
# running autoreconf
# running configure --prefix=/local --with-iulib=/local --without-SDL
--without-tesseract --without-leptonica --without-OpenMP
--- omitted stuff ---
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
# please run make now
which seems fine to me. I then run make:
$ make
Making all in .
/usr/bin/g++-4.0 -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_LIBBLAS=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./include -I./ocr-utils -I/
local/include -I -I/local/include -g -O2 -Wall -Wno-sign-compare -
Wno-write-strings -Wno-deprecated -g -O2 -MT ocr-commands.o -MD -MP -
MF .deps/ocr-commands.Tpo -c -o ocr-commands.o `test -f './ocr-
commands/ocr-commands.cc' || echo './'`./ocr-commands/ocr-commands.cc
In file included from ./include/glinerec.h:57,
from ./ocr-commands/ocr-commands.cc:36:
./include/glutils.h:139: warning: ignoring #pragma omp parallel
./ocr-commands/ocr-commands.cc:338: warning: ignoring #pragma omp
parallel
./ocr-commands/ocr-commands.cc:340: warning: ignoring #pragma omp
critical
./ocr-commands/ocr-commands.cc:364: warning: ignoring #pragma omp
atomic
./ocr-commands/ocr-commands.cc:366: warning: ignoring #pragma omp
atomic
./ocr-commands/ocr-commands.cc:444: warning: ignoring #pragma omp
atomic
./ocr-commands/ocr-commands.cc:446: warning: ignoring #pragma omp
atomic
./ocr-commands/ocr-commands.cc:448: warning: ignoring #pragma omp
atomic
./ocr-commands/ocr-commands.cc:450: warning: ignoring #pragma omp
atomic
./ocr-commands/ocr-commands.cc:453: warning: ignoring #pragma omp
atomic
./ocr-commands/ocr-commands.cc:457: warning: ignoring #pragma omp
critical
./ocr-commands/ocr-commands.cc:941: warning: ignoring #pragma omp
parallel
/local/include/colib/iustring.h:41: warning: ‘class
colib::EncodedString’ has virtual functions but non-virtual destructor
/local/include/colib/iustring.h:98: warning: ‘class colib::utf8strg’
has virtual functions but non-virtual destructor
/local/include/colib/iustring.h: In instantiation of
‘colib::iustrg<char>’:
/local/include/colib/iustring.h:742: instantiated from here
/local/include/colib/iustring.h:166: warning: ‘class
colib::iustrg<char>’ has virtual functions but non-virtual destructor
/local/include/colib/iustring.h: In instantiation of
‘colib::iustrg<colib::nuchar>’:
/local/include/colib/iustring.h:800: instantiated from here
/local/include/colib/iustring.h:166: warning: ‘class
colib::iustrg<colib::nuchar>’ has virtual functions but non-virtual
destructor
./ocr-utils/components.h:275: warning: ‘struct
ocropus::IComponentConstructor’ has virtual functions but non-virtual
destructor
./ocr-commands/ocr-commands.cc: In function ‘void
ocropus::nustring_convert(colib::nustring&, colib::iucstring&)’:
./ocr-commands/ocr-commands.cc:104: error: ‘class colib::iustrg<char>’
has no member named ‘toNustring’
./ocr-commands/ocr-commands.cc: In function ‘int ocropus::main_evaluate
(int, char**)’:
./ocr-commands/ocr-commands.cc:573: error: ‘class colib::iucstring’
has no member named ‘toNustring’
./ocr-commands/ocr-commands.cc:574: error: ‘class colib::iucstring’
has no member named ‘toNustring’
./ocr-commands/ocr-commands.cc: In function ‘int ocropus::main_evalconf
(int, char**)’:
./ocr-commands/ocr-commands.cc:627: error: ‘class colib::iucstring’
has no member named ‘toNustring’
./ocr-commands/ocr-commands.cc:628: error: ‘class colib::iucstring’
has no member named ‘toNustring’
./ocr-commands/ocr-commands.cc: In function ‘int ocropus::main_findconf
(int, char**)’:
./ocr-commands/ocr-commands.cc:711: error: ‘class colib::iucstring’
has no member named ‘toNustring’
./ocr-commands/ocr-commands.cc:712: error: ‘class colib::iucstring’
has no member named ‘toNustring’
./ocr-commands/ocr-commands.cc: In function ‘int
ocropus::main_evalfiles(int, char**)’:
./ocr-commands/ocr-commands.cc:731: error: ‘class colib::iucstring’
has no member named ‘toNustring’
./ocr-commands/ocr-commands.cc:732: error: ‘class colib::iucstring’
has no member named ‘toNustring’
./ocr-commands/ocr-commands.cc: In function ‘int
ocropus::main_recognize1(int, char**)’:
./ocr-commands/ocr-commands.cc:915: error: no matching function for
call to ‘colib::iustrg<colib::nuchar>::utf8Encode
(colib::narray<char>&)’
/local/include/colib/iustring.h:544: note: candidates are: void
colib::iustrg<T>::utf8Encode(colib::utf8strg&) [with T =
colib::nuchar]
/local/include/colib/iustring.h:562: note: void
colib::iustrg<T>::utf8Encode(char*, int) [with T = colib::nuchar]
./ocr-commands/ocr-commands.cc: In function ‘int
ocropus::main_trainseg_or_saveseg(int, char**)’:
./ocr-commands/ocr-commands.cc:1158: error: ‘class colib::nustring’
has no member named ‘mallocUtf8Encode’
/local/include/colib/iustring.h: In member function ‘void
colib::iustrg<T>::push_back(A) [with A = colib::nuchar, T = char]’:
/local/include/colib/iustring.h:239: instantiated from
‘colib::iustrg<T>& colib::iustrg<T>::append(const colib::iustrg<A>&,
int, int) [with A = colib::nuchar, T = char]’
/local/include/colib/iustring.h:249: instantiated from
‘colib::iustrg<T>& colib::iustrg<T>::append(const colib::iustrg<A>&)
[with A = colib::nuchar, T = char]’
./ocr-commands/ocr-commands.cc:99: instantiated from here
/local/include/colib/iustring.h:275: error: invalid cast from type
‘const colib::nuchar’ to type ‘char’
make[1]: *** [ocr-commands.o] Error 1
make: *** [all-recursive] Error 1
$
...huh?? I have tried google, but I don't seem to be able to find any
hits on this. Anyone?
Thanks a lot
Daniel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---