tesseract in Visual Studio 2013

1,003 views
Skip to first unread message

Hsrt

unread,
Mar 23, 2014, 6:27:16 AM3/23/14
to tesser...@googlegroups.com
Hello,

I want to use tesseract on vs2013. And I added lib and include path my vs project's properties. When I include only this line "#include <tesseract/baseapi.h>" ,there isnot error. 
But when I use this line "tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI();", I get an error like "unresolved external symbol" 

Faruk Terzioğlu

unread,
Mar 25, 2014, 3:30:11 AM3/25/14
to tesser...@googlegroups.com
Hi Hsrt,

Did you add "libtesseract302d.lib" and "liblept168d.lib" (or "libtesseract302.lib" and "liblept168.lib" ) under "Linker -> Input -> Additional Dependencies"

23 Mart 2014 Pazar 12:27:16 UTC+2 tarihinde Hsrt yazdı:

Hsrt

unread,
Mar 25, 2014, 4:42:47 AM3/25/14
to tesser...@googlegroups.com
@Faruk I added them , I get a run time error "missing dll". When I put dll the folder of my projeject's exe, I get a run time error "application was unable to start correctly "0xc0150002"

Faruk Terzioğlu

unread,
Mar 25, 2014, 5:23:02 AM3/25/14
to tesser...@googlegroups.com
I am using it with VS 2010 and i didn't try with VS2013. I am not sure what the problem is, but these may help you;
- Check the "Windows event log" (under of it check -> Windows Logs -> System Logs) , sometimes it says which dll is missing exactly.
- Run with release not with debug. (Be sure release versions of dlls is selected in Linker)
- Bu sure also lebtonica dll is added to directory of your project exe.
- Bu sure tesseract directory is like ->
 [tesseract]
        /include
            /tesseract
            /lebtonice
        /lib
           libtesseract302.lib
           liblept168.lib
           libtesseract302d.lib
           liblept168d.lib

-Check these links ->
http://code.google.com/p/tesseract-ocr/issues/detail?id=682
https://groups.google.com/forum/#!topic/tesseract-ocr/k-cwWKmVbTM
http://markmail.org/message/pcglff3ri22b6frd
http://community.rti.com/kb/how-resolve-error-application-was-unable-start-correctly-0xc0150002-click-ok-close-application


25 Mart 2014 Salı 10:42:47 UTC+2 tarihinde Hsrt yazdı:
Reply all
Reply to author
Forward
0 new messages