On Dec 3, 4:28 pm, "shao.d" <[EMAIL PROTECTED]> wrote:
> Andrew,
>
> Examine the ./configure output of ocropus. I'm guessing that the
> headers and/or the tesseract_full library were not detected, probably
> the tesseract_full library. I had tried to patch configure.ac so that
> the external package messages appear near the bottom of the output,
> more visible to people compiling the programs.
I am used to ./configure scripts preventing me from issuing "make" if
something is missing (not true of every applicaiton i've compiled, but
at least 95% of them)
ocropus ./configure does not give me any errors; although it does say
i'm missing things like "SDL_gfx"
And at the end, ./configure says:
OK! Now you can build OCRopus by typing
make
I type "make" and ocropus seems to compile, and is install-able.
In my "config.log", here are the lines mentioning tesseract_full:
====== ocropus config.log ===============
<snip>
configure:23092: checking tesseract/baseapi.h usability
configure:23109: g++ -c -g -O2 conftest.cpp >&5
configure:23115: $? = 0
configure:23129: result: yes
configure:23133: checking tesseract/baseapi.h presence
configure:23148: g++ -E conftest.cpp
configure:23154: $? = 0
configure:23168: result: yes
configure:23196: checking for tesseract/baseapi.h
configure:23203: result: yes
configure:23216: checking for err_exit in -ltesseract_full
configure:23251: g++ -o conftest -g -O2 conftest.cpp -
ltesseract_full -liulib -ltiff -ljpeg -lpng -lz >&5
/usr/local/lib/libtesseract_full.a(libtesseract_full.o): In function
`SVSync::StartThread(void* (*)(void*), void*)':
/data/installers/svn/tesseract-ocr-read-only/viewer/svutil.cpp:170:
undefined reference to `pthread_create'
/usr/local/lib/libtesseract_full.a(libtesseract_full.o): In function
`SVSemaphore::Wait()':
/data/installers/svn/tesseract-ocr-read-only/viewer/svutil.cpp:127:
undefined reference to `sem_wait'
/usr/local/lib/libtesseract_full.a(libtesseract_full.o): In function
`SVSemaphore::Signal()':
/data/installers/svn/tesseract-ocr-read-only/viewer/svutil.cpp:119:
undefined reference to `sem_post'
/usr/local/lib/libtesseract_full.a(libtesseract_full.o): In function
`SVSemaphore':
/data/installers/svn/tesseract-ocr-read-only/viewer/svutil.cpp:111:
undefined reference to `sem_init'
/data/installers/svn/tesseract-ocr-read-only/viewer/svutil.cpp:111:
undefined reference to `sem_init'
collect2: ld returned 1 exit status
configure:23257: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "ocropus"
| #define PACKAGE_TARNAME "ocropus"
| #define PACKAGE_VERSION "0.3.1"
| #define PACKAGE_STRING "ocropus 0.3.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "ocropus"
| #define VERSION "0.3.1"
<snip in-between>
ac_cv_lib_lept_pixCreate=yes
ac_cv_lib_png_png_read_png=yes
ac_cv_lib_pthread_pthread_create=yes
ac_cv_lib_tesseract_full_err_exit=no
ac_cv_lib_tiff_TIFFOpen=yes
ac_cv_lib_z_compress=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
============== <snip the rest> ================
> I would also use from the ocropus files section
> http://groups.google.com/group/ocropus/files
> the toautotools*20081127.diff versions of my patches, if you aren't
> doing so already.
>
> David
>
> On Dec 2, 7:24 am, Andrew <[EMAIL PROTECTED]> wrote:
>
> > My command
>
> > ocroscript recognize sample.png > /var/www/html/ocropus/test1.html
>
> > produces a web page that only has this one line:
>
> > "Compiled without Tesseract support, can't continue."
>
> > --------------------
>
I have applied the patches from http://groups.google.com/group/ocropus/files
previously.
Also, i have run svn updates on ocropus and tesseract (there were no
new files for the tesseract svn); the ocropus svn update has not
changed the "tesseract_full" errors in config.log
Thanks
Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---