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