Thanks a lot! While I still had to play around a bit, I finally managed to compile it!
There's one little thing though and I hope it won't cause any trouble later, but I had to change a part of host.h. (I am using VS2010) I get compiler errors, because INT64 and UINT64 are undefined. So I had to change this code: #if (_MSC_VER >= 1200) typedef INT64 inT64; typedef UINT64 uinT64; #else ... and remove the corresponding typedefs: #if (_MSC_VER >= 1200) typedef long long int inT64; typedef unsigned long long int uinT64; #endif On 13 Nov., 11:20, Merve Temizer <[email protected]> wrote: > Hello, > > I attached a cpp file which i tried something with it. It is not a tidy > code but i think you can find some clues on how to use api directory of > tesseract. > Below is the console command on linux that i use to compile this cpp file > > g++ deneme234.cpp -I /usr/include/opencv -L/usr/lib > -L/usr/lib/pyshared/python2.7/opencv -lcxcore -lcv -lhighgui -lcvaux -I > /usr/include -I /usr/local/include/leptonica -I /usr/include/leptonica -I > /usr/local/include -I /usr/local/include/tesseract -L/usr/local/lib -I ./ > -ltesseract_api -ltesseract_textord -ltesseract_main -ltesseract_wordrec > -ltesseract_classify -ltesseract_dict -ltesseract_viewer -ltesseract_ccutil > -ltesseract_ccstruct -ltesseract_cutil -ltesseract_image -ltiff -lpthread > -L ./ -g -O0 -o deneme2346 > > 2011/11/13 zdenko podobny <[email protected]> > > > > > > > > > > > On Sun, Nov 13, 2011 at 5:32 AM, cyrt <[email protected]> wrote: > > >> Could someone please explain how I can use tesseract in c++? > > > use api/tesseractmain.cpp api/tesseractmain.h as example > > >> I > >> downloaded the source files via svn and compiled the solution. Which > >> libraries do I now have to link and where do I find an include > >> directory containing all necessary header files? > > > officially there is no windows library solution yet. > > > But have a look at developer forum - there are information with proposed > > solution for library on windows. > > >> -- > >> 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 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 > > > > deneme234.cpp > 8KAnzeigenHerunterladen -- 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

