I found the "build" script; the script creates the
makefiles that I was missing.
The paths to the headers are still creating problems.
Running iulib's build script followed by make gives
$ make
g++ -DPACKAGE_NAME=\"iulib\" -DPACKAGE_TARNAME=\"iulib\" -
DPACKAGE_VERSION=\"0.3\" -DPACKAGE_STRING=\"iulib\ 0.3\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"iulib\" -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_OLD_AVFORMAT=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./colib -I./imgio -I./imglib -I/sw/include -I/
opt/include -I/sw/include -I/opt/include -MT imgio.o -MD -MP -
MF .deps/imgio.Tpo -c -o imgio.o `test -f './imgio/imgio.cc' || echo
'./'`./imgio/imgio.cc
In file included from ./imgio/io_tiff.h:30,
from ./imgio/imgio.h:30,
from ./imgio/imgio.cc:24:
./imglib/iulib.h:30:22: error: bithacks.h: No such file or directory
./imglib/iulib.h:31:23: error: imgbitptr.h: No such file or directory
./imglib/iulib.h:32:21: error: imgbits.h: No such file or directory
./imglib/iulib.h:33:20: error: imgrle.h: No such file or directory
./imglib/iulib.h:53:23: error: dgraphics.h: No such file or directory
./imglib/iulib.h:54:19: error: vidio.h: No such file or directory
make: *** [imgio.o] Error 1
$
Editing iulib.h allows me to compile and install iulib without errors,
but then I get the
following error
$ ./build --with-tesseract=/usr/local --without-leptonica
...
# please run make now
$ make
Making all in .
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./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
In file included from ./include/ocropus.h:30,
from ./ocr-binarize/ocr-binarize-otsu.cc:27:
/usr/local/include/iulib/iulib.h:30:30: error: imgbits/bithacks.h: No
such file or directory
/usr/local/include/iulib/iulib.h:31:31: error: imgbits/imgbitptr.h: No
such file or directory
/usr/local/include/iulib/iulib.h:32:29: error: imgbits/imgbits.h: No
such file or directory
/usr/local/include/iulib/iulib.h:33:28: error: imgbits/imgrle.h: No
such file or directory
/usr/local/include/iulib/iulib.h:53:29: error: utils/dgraphics.h: No
such file or directory
/usr/local/include/iulib/iulib.h:54:25: error: vidio/vidio.h: No such
file or directory
make[1]: *** [ocr-binarize-otsu.o] Error 1
make: *** [all-recursive] Error 1
$
Installing the original iulib.h in /usr/local/include/iulib then
causes the ocropus make to fail in this way:
$ make
...
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./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 glclass.o -MD -MP
-MF .deps/glclass.Tpo -c -o glclass.o `test -f './ocr-line/glclass.cc'
|| echo './'`./ocr-line/glclass.cc
In file included from ./ocr-line/glclass.cc:6:
./include/gsl.h:4:28: error: gsl/gsl_linalg.h: No such file or
directory
In file included from ./ocr-line/glclass.cc:6:
./include/gsl.h:9: error: ISO C++ forbids declaration of 'gsl_vector'
with no type
./include/gsl.h:9: error: expected ';' before '*' token
./include/gsl.h:10: error: 'gsl_vector_view' does not name a type
./include/gsl.h:37: error: expected type-specifier before
'gsl_vector_view'
./include/gsl.h:40: error: expected type-specifier before 'gsl_vector'
./include/gsl.h: In constructor 'gsl::vector::vector(int)':
./include/gsl.h:12: error: 'p' was not declared in this scope
./include/gsl.h:12: error: 'gsl_vector_alloc' was not declared in this
scope
./include/gsl.h:13: error: 'view' was not declared in this scope
./include/gsl.h:13: error: 'gsl_vector_subvector_with_stride' was not
declared in this scope
./include/gsl.h: In destructor 'gsl::vector::~vector()':
./include/gsl.h:16: error: 'p' was not declared in this scope
./include/gsl.h:16: error: 'gsl_vector_free' was not declared in this
scope
./include/gsl.h: In member function 'int gsl::vector::length()':
./include/gsl.h:20: error: 'p' was not declared in this scope
./include/gsl.h: In member function 'int gsl::vector::dim(int)':
./include/gsl.h:23: error: 'p' was not declared in this scope
./include/gsl.h: In member function 'void gsl::vector::resize(int)':
./include/gsl.h:27: error: 'p' was not declared in this scope
./include/gsl.h:27: error: 'gsl_vector_free' was not declared in this
scope
./include/gsl.h:28: error: 'gsl_vector_alloc' was not declared in this
scope
./include/gsl.h: In member function 'void gsl::vector::operator=
(double)':
./include/gsl.h:31: error: 'p' was not declared in this scope
./include/gsl.h:31: error: 'gsl_vector_set_all' was not declared in
this scope
./include/gsl.h: In member function 'double& gsl::vector::operator()
(int)':
./include/gsl.h:34: error: 'p' was not declared in this scope
./include/gsl.h:35: error: 'p' was not declared in this scope
./include/gsl.h: At global scope:
./include/gsl.h:58: error: ISO C++ forbids declaration of 'gsl_matrix'
with no type
./include/gsl.h:58: error: expected ';' before '*' token
./include/gsl.h:59: error: 'gsl_matrix_view' does not name a type
./include/gsl.h:86: error: expected type-specifier before
'gsl_matrix_view'
./include/gsl.h:89: error: expected type-specifier before 'gsl_matrix'
./include/gsl.h: In constructor 'gsl::matrix::matrix(int, int)':
./include/gsl.h:61: error: 'p' was not declared in this scope
./include/gsl.h:61: error: 'gsl_matrix_alloc' was not declared in this
scope
./include/gsl.h:62: error: 'view' was not declared in this scope
./include/gsl.h:62: error: 'gsl_matrix_view_array_with_tda' was not
declared in this scope
./include/gsl.h: In destructor 'gsl::matrix::~matrix()':
./include/gsl.h:65: error: 'p' was not declared in this scope
./include/gsl.h:65: error: 'gsl_matrix_free' was not declared in this
scope
./include/gsl.h: In member function 'int gsl::matrix::dim(int)':
./include/gsl.h:69: error: 'p' was not declared in this scope
./include/gsl.h:70: error: 'p' was not declared in this scope
./include/gsl.h: In member function 'void gsl::matrix::resize(int,
int)':
./include/gsl.h:74: error: 'p' was not declared in this scope
./include/gsl.h:74: error: 'gsl_matrix_free' was not declared in this
scope
./include/gsl.h:75: error: 'gsl_matrix_alloc' was not declared in this
scope
./include/gsl.h:76: error: 'view' was not declared in this scope
./include/gsl.h:76: error: 'gsl_matrix_view_array_with_tda' was not
declared in this scope
./include/gsl.h: In member function 'void gsl::matrix::operator=
(double)':
./include/gsl.h:79: error: 'p' was not declared in this scope
./include/gsl.h:79: error: 'gsl_matrix_set_all' was not declared in
this scope
./include/gsl.h: In member function 'double& gsl::matrix::operator()
(int, int)':
./include/gsl.h:82: error: 'p' was not declared in this scope
./include/gsl.h:83: error: 'p' was not declared in this scope
./include/gsl.h:84: error: 'p' was not declared in this scope
./ocr-line/glclass.cc: In function 'void glinerec::least_square
(colib::floatarray&, colib::floatarray&, colib::floatarray&)':
./ocr-line/glclass.cc:1307: error: 'gsl_linalg_SV_decomp_mod' was not
declared in this scope
./ocr-line/glclass.cc:1308: error: 'gsl_linalg_SV_solve' was not
declared in this scope
/usr/local/include/colib/narray.h: In member function
'colib::narray<T>& colib::narray<T>::truncate(int) [with T = char]':
./ocr-utils/narray-binio.h:48: instantiated from here
/usr/local/include/colib/narray.h:261: warning: no return statement in
function returning non-void
/usr/local/include/colib/narray.h: In member function
'colib::narray<T>& colib::narray<T>::truncate(int) [with T = int]':
./ocr-line/glclass.cc:295: instantiated from here
/usr/local/include/colib/narray.h:261: warning: no return statement in
function returning non-void
make[1]: *** [glclass.o] Error 1
make: *** [all-recursive] Error 1
$
gsl_linalg.h -- aha. I'm missing gsl.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---