
Hello, I forward your message to olena mailing-list for the record and I prepare an answer for you. Guillaume -------- Original Message -------- Subject: Re: [Olena] Problem make Scribo Date: Tue, 29 Nov 2011 10:26:28 +0100 From: Mikado Mikado <mikados.mikados@gmail.com> To: Guillaume Lazzara <lazzara@lrde.epita.fr> Hi, thanks for reply. I use your fix, and now give me this error: I try: ~olena-2.0/_build/scribo $ make And get this: /*In file included from ../../../../scribo/scribo/toolchain/internal/content_in_doc_functor.hh:65:0, from ../../../../scribo/demo/viewer/process.hh:22, from ../../../../scribo/demo/viewer/runner.cc:26: ../../../../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[3]: *** [scribo_viewer-runner.o] Error 1 make[3]: se sale del directorio «/home/user/Descargas/olena-2.0/_build/scribo/demo/viewer» make[2]: *** [all] Error 2 make[2]: se sale del directorio «/home/user/Descargas/olena-2.0/_build/scribo/demo/viewer» make[1]: *** [all-recursive] Error 1 make[1]: se sale del directorio «/home/user/Descargas/olena-2.0/_build/scribo/demo» make: *** [all-recursive] Error 1*/ Is other error, i try find error documentation and forums...but nothing, i use Ubuntu 11.10 and g++ 4.6.1 Any idea? Thanks 2011/11/25 Guillaume Lazzara <lazzara@lrde.epita.fr <mailto:lazzara@lrde.epita.fr>> Hi, On 24/11/2011 17:58, Mikado Mikado wrote: With this code in terminal: olena2.0/_build$ ./configure --enable-scribo olena2.0/_build$ make For install Scribo module, but i get this error: ../../../../milena/mln/canvas/browsing/snake_generic.hh:76:14: nota: ‘const struct mln::canvas::browsing::snake_generic_t’ no tiene constructor por defecto proporcionado por el usuario make[1]: *** [pgm_global_threshold_auto.o] Error 1 make: *** [all-recursive] Error 1 I have Ubuntu 11.10 32 bits. Anyone can help me? Thanks for your report. Ubuntu 11.10 provides g++ 4.6.1 which changed few things about initialization of global structures/classes. This is a known issue which can be avoided easily. I have just added a "known issues" section in the download page explaining the workaround. You can find it below. Thanks for your interest in Scribo and Olena. Sincerely, Guillaume ------------- Compilation issues may be encountered with g++ 4.6.0 and 4.6.1 (especially on Ubuntu 11.10). Here is an example of the possible error : ../../../../olena/milena/mln/canvas/browsing/snake_generic.hh:90:29: error: uninitialized const ‘mln::canvas::browsing::snake_generic’ [-fpermissive] ../../../../olena/milena/mln/canvas/browsing/snake_generic.hh:76:14: note: ‘const struct mln::canvas::browsing::snake_generic_t’ has no user-provided default constructor Many non-relevant warnings may also arise. A simple solution is to add CXXFLAGS to configure script with the following argument : %begin bash% ./configure CXXFLAGS="-fpermissive -Wunused-but-set-variable" %end% Otherwise, using a different version of g++ would also fix this issue without specifying anything to configure.