I'm trying to compile my project in Qt that uses tesseract and opencv. In the .pro file:
INCLUDEPATH += /usr/local/include/tesseract INCLUDEPATH += /usr/local/include/leptonica LIBS += -ltesseract -llept The errors (I only past the first lines, because is a big list, all from tesscallback.h): In file included from /usr/local/include/tesseract/baseapi.h:31:0, from src/utils/ocrReader.cpp:6: /usr/local/include/tesseract/tesscallback.h:278:29: error: 'remove_reference' is not a template /usr/local/include/tesseract/tesscallback.h:278:29: error: redefinition of 'struct remove_reference<T>' /usr/local/include/tesseract/tesscallback.h:277:29: error: previous definition of 'struct remove_reference<T>' /usr/local/include/tesseract/tesscallback.h:296:12: error: expected nested-name-specifier before 'remove_reference' /usr/local/include/tesseract/tesscallback.h:296:12: error: expected ';' at end of member declaration /usr/local/include/tesseract/tesscallback.h:296:28: error: expected unqualified-id before '<' token What is strange is that I have compiled with sucess with another simple qt project to test tesseract funcionality, with the same config in the .pro file. I don't know why this project in particular is having issues. -- -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" 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/tesseract-ocr?hl=en --- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

