On Jun 19, 9:57 am, Bill <[email protected]> wrote:
> After I downloaded and installed libgsl, I get the following error:
>
> 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_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 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 ./include/glinerec.h:57,
>                  from ./ocr-line/glclass.cc:5:
> ./include/glutils.h:139: warning: ignoring #pragma omp parallel
> ./ocr-line/glclass.cc:105: warning: ignoring #pragma omp parallel
> ./ocr-line/glclass.cc:129: warning: ignoring #pragma omp parallel
> ./ocr-line/glclass.cc:175: warning: ignoring #pragma omp parallel
> ./ocr-line/glclass.cc:236: warning: ignoring #pragma omp parallel
> ./ocr-line/glclass.cc:421: warning: ignoring #pragma omp parallel
> ./ocr-line/glclass.cc:644: warning: ignoring #pragma omp parallel
> ./ocr-line/glclass.cc:1166: warning: ignoring #pragma omp parallel
> ./ocr-line/glclass.cc:1403: warning: ignoring #pragma omp parallel
> ./ocr-line/glclass.cc:1623: warning: ignoring #pragma omp parallel
> ./ocr-utils/components.h:275: warning:  struct
> ocropus::IComponentConstructor  has virtual functions but non-virtual
> destructor
> /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
> /local/include/colib/narray.h:261: warning: no return statement in
> function returning non-void
> /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
> /local/include/colib/narray.h:261: warning: no return statement in
> function returning non-void
> /local/include/colib/rowarrays.h: In function  T
> colib::rowdist_euclidean(colib::narray<T>&, int, colib::narray<T>&)
> [with T = float] :
> ./ocr-line/glclass.cc:396:   instantiated from here
> /local/include/colib/rowarrays.h:94: error: call of overloaded  sqrt
> (float)  is ambiguous
> /local/include/colib/iarith.h:345: note: candidates are:
> colib::interval colib::sqrt(colib::interval)
> /local/include/colib/iarith.h:620: note:
> colib::dinterval colib::sqrt(colib::dinterval)

I used gcc-4.2 (gcc-4.01 is the default on OS X -- the configure
script should check this and fix it if necessary), and got further.

After applying the "genAM.py" fix in iulib, and the "environ" fix in
ocropus, and the "dgraphics_nosdl.cc" fix in iulib, I get to this:

% make check
...
# running tests
./test-binarize-sauvola ./data/testimages
./test-narray-io ./data/testimages
terminate called after throwing an instance of 'char*'
make: *** [check] Abort trap
%

Bill

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