Your message dated Fri, 22 Dec 2017 11:22:18 -0800
with message-id 
<CAHjiUbr-xeyvQD+-9442h==x77sfmx5zeogfcqtwhtoja2m...@mail.gmail.com>
and subject line Bug#884903: libtesseract-dev: headers broken: missing std::; 
headers missing
has caused the Debian Bug report #884903,
regarding libtesseract-dev: headers broken: missing std::; headers missing
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
884903: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884903
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libtesseract-dev
Version: 4.00~git2174-3b62badd-5
Severity: serious
Control: affects -1 src:opencv

Hi,

tesseract 4 causes opencv/experimental to FTBFS:

In file included from /usr/include/tesseract/ltrresultiterator.h:26:0,
                 from /usr/include/tesseract/resultiterator.h:26,
                 from /usr/include/tesseract/baseapi.h:31,
                 from 
/build/opencv-3.3.0+dfsg/contrib/modules/text/src/precomp.hpp:51,
                 from 
/build/opencv-3.3.0+dfsg/contrib/modules/text/src/erfilter.cpp:43:
/usr/include/tesseract/unichar.h:164:10: error: 'string' does not name a type; 
did you mean 'stdin'?
   static string UTF32ToUTF8(const std::vector<char32>& str32);
          ^~~~~~
          stdin
modules/text/CMakeFiles/opencv_text.dir/build.make:65: recipe for target 
'modules/text/CMakeFiles/opencv_text.dir/src/erfilter.cpp.o' failed
make[4]: *** [modules/text/CMakeFiles/opencv_text.dir/src/erfilter.cpp.o] Error 
1


Let's compile each tesseract header:

for header in /usr/include/tesseract/*.h ; do echo $header ; echo "#include 
<$(basename $header)>" | g++ -c -xc++ -o /tmp/o.o -I /usr/include/tesseract - ; 
done

I'll only list each error once:

In file included from <stdin>:1:0:
/usr/include/tesseract/convolve.h:25:10: fatal error: matrix.h: No such file or 
directory
 #include "matrix.h"
          ^~~~~~~~~~
compilation terminated.

In file included from <stdin>:1:0:
/usr/include/tesseract/functions.h:24:10: fatal error: tprintf.h: No such file 
or directory
 #include "tprintf.h"
          ^~~~~~~~~~~
compilation terminated.

In file included from /usr/include/tesseract/unicharset.h:29:0,
                 from /usr/include/tesseract/osdetect.h:24,
                 from <stdin>:1:
/usr/include/tesseract/unichar.h:164:10: error: 'string' does not name a type; 
did you mean 'stdin'?
   static string UTF32ToUTF8(const std::vector<char32>& str32);
          ^~~~~~
          stdin
In file included from /usr/include/tesseract/osdetect.h:24:0,
                 from <stdin>:1:
/usr/include/tesseract/unicharset.h:241:10: error: 'string' does not name a 
type; did you mean 'stdin'?
   static string CleanupString(const char* utf8_str) {
          ^~~~~~
          stdin
/usr/include/tesseract/unicharset.h:244:10: error: 'string' does not name a 
type; did you mean 'stdin'?
   static string CleanupString(const char* utf8_str, int length);
          ^~~~~~
          stdin
/usr/include/tesseract/unicharset.h: In member function 'void 
UNICHARSET::unichar_insert_backwards_compatible(const char*)':
/usr/include/tesseract/unicharset.h:265:5: error: 'string' was not declared in 
this scope
     string cleaned = CleanupString(unichar_repr);
     ^~~~~~

In file included from <stdin>:1:0:
/usr/include/tesseract/renderer.h:215:29: error: 'Pix' has not been declared
   static bool imageToPDFObj(Pix *pix, char *filename, long int objnum,
                             ^~~


Andreas

--- End Message ---
--- Begin Message ---
Confirmed

--- End Message ---

Reply via email to