I download  the tesseract-ocr library from the 
https://code.google.com/p/tesseract-ocr/downloads/list
tesseract-3.02.02-win32-lib-include-dirs.zip

I use the Qt platform to bulid the program:
Add the below code to the project.pro file:

INCLUDEPATH  += ./include/tesseract/ \

                ./include/leptonica/ \

                ./include


LIBS+= ./lib/libtesseract302.dll \

       ./lib/libtesseract302.lib


Add the below code to the project.h file:

#include <tesseract/baseapi.h>


Add the below code to the project.cpp file:

    const char* filename = "./number.jpg";

    const char* lang = "eng";


    tesseract::TessBaseAPI *tess = new tesseract::TessBaseAPI();


////////////////////////////////////////////////////////////////////////////////////////////////

But when I compile the project , the error coming like:

undefined reference to `tesseract::TessBaseAPI::TessBaseAPI()



How can I solve the problem? Anyone can tell me how to connect the library of 
the tesseract_ocr  in the Qt5.5 ? Thank you very much.



-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/6793cbaf-3cd4-4cd6-a791-00e14524855d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to