On 30/11/2011 10:28, Mikado Mikado wrote:
Hi thanks for reply,
I have installed this:
/user@nuxeo:~$ tesseract -v
*tesseract 3.01*/
And i have installed* /tesseract-ocr-dev/*/ /packages too.
I have/* Ubuntu 11.10*/ with /*g++ 4.6.1.*/
I get this error:
*/In file included from
../../../../../scribo/scribo/draw/bounding_box_links.hh:37:0,/*
*/ from
../../../../../scribo/scribo/debug/linked_bboxes_image.hh:47,/*
*/ from
../../../../../scribo/scribo/toolchain/internal/content_in_hdoc_functor.hh:85,/*
*/ from
../../../../../scribo/scribo/toolchain/content_in_hdoc.hh:33,/*
*/ from
../../../../../scribo/src/contest/DAE-2011/content_in_hdoc_dae.cc:38:/*
*/../../../../../milena/mln/canvas/browsing/depth_first_search.hh:92:34:
aviso: const ‘mln::canvas::browsing::depth_first_search’ sin
inicializar [-fpermissive]/*
*/../../../../../milena/mln/canvas/browsing/depth_first_search.hh:80:14:
nota: ‘const struct mln::canvas::browsing::depth_first_search_t’ no
tiene constructor por defecto proporcionado por el usuario/*
Since you are using -fpermissive, this is not an error anymore. Gcc
keeps warning you about that issue but ignores it.
And this:
/*In file included from
../../../../scribo/src/text/pbm_lines_recognition.cc:36:0:*/
/*../../../../scribo/scribo/text/recognition.hh: En la función ‘void
scribo::text::recognition(scribo::line_set<L>&, const char*)’:*/
/*../../../../scribo/scribo/text/recognition.hh:112:7: error:
‘TessBaseAPI’ no se ha declarado*/
/*../../../../scribo/scribo/text/recognition.hh:174:12: error:
‘TessBaseAPI’ no se ha declarado*/
/*../../../../scribo/scribo/text/recognition.hh: En la función ‘void
scribo::text::recognition(const mln::Image<I>&, const char*, const
string&)’:*/
/*../../../../scribo/scribo/text/recognition.hh:220:7: error:
‘TessBaseAPI’ no se ha declarado*/
/*../../../../scribo/scribo/text/recognition.hh:248:17: error:
‘TessBaseAPI’ no se ha declarado*/
/*make[1]: *** [pbm_lines_recognition-pbm_lines_recognition.o] Error 1*/
/*make[1]: se sale del directorio
«/home/master/Descargas/olena-2.0/_build/scribo/src/text»*/
/*make: *** [all-recursive] Error 1*/
According to your config.log and what you are telling me, it seems that
you have two versions of tesseract installed 2.04 and 3.01. Right ?
I have tried to compile Olena on a fresh install of Ubuntu 11.10 and
everything went fine (with -fpermissive). Tesseract 2.04 was used
though, since, AFAIK, this is the only version officially provided by
Ubuntu for now.
* Did you installed both versions of tesseract in the standard
directories (/usr/ but not /usr/local) ? It might be an issue of our
configure script which gets confused by the two versions installed.
* What does this command print:
$ which tesseract
* You will definitely get best results with Tesseract 3.01. I advice you
to install it manually in a separate location by doing the following:
#Download files
sudo apt-get install libleptonica-dev
cd /tmp
wget
http://tesseract-ocr.googlecode.com/files/tesseract-3.01.tar.gz
http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.01.eng.tar.gz
#Install Tesseract core
tar zxvf tesseract-3.01.tar.gz
cd tesseract-3.01
./autogen.sh
./configure --prefix=/usr/local
sudo make install
#Install English support
cd ..
tar zxvf
http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.01.eng.tar.gz
sudo mv tesseract-ocr/tessdata/* /usr/local/share/tessdata/
Now you have Tesseract 3.01 installed in /usr/local
Go back to your olena directory and set the location of Tesseract during
configure:
cd <olena_dir>
./configure --with-tesseract=/usr/local
make
Now Olena should use Tesseract 3.01 and compile without any issue.
--
Guillaume Lazzara
EPITA Research and Development Laboratory (LRDE)
14-16 rue Voltaire F-94276 Le Kremlin-Bicetre France
phone +33 1 53 14 59 39 - fax +33 1 53 14 59 22