On Sat, Apr 20, 2013 at 11:06 PM, TedJ <[email protected]> wrote:

> >Have you looked at my "Using the latest Tesseract-OCR sources" page [1]
> that explains how to use TortoiseSVN to get the latest sources?
>
> I tried installing Tortroise too.  Couldn't install it either.  I have
> only downloaded and unzipped the latest 3.02 ZIP contributions from
> Google's Tesseract-OCR download site into individual directories
> (preserving their directory structure of course).  Isn't that sufficient?
>  So svn is the base directory of the repository at Github that you were
> referring to.
>
> >"Programming with libtesseract" [2] discusses how to use libtesseract
> with VS2008 but some of the information applies to any compiler. baseapi.h
> and leptonica's allheaders.h are the headers you need to include.
>
> They're already included.  Guess that's why it compiles (but won't link).
>  So tessbaseapi.h was from an earlier version?  I don't have Visual Studio
> and I don't want to buy it.  Thus, all the vcproj files are evidently
> useless to me.  I've been trying to use MinGW GCC as my current toolchain
> and CDT Internal Builder as my current builder within Eclipse. In a batch
> file, it should be either:
>
> If you plan to use mingw - have a look at my test[1] with mingw+msys
(VC++2008 is preferred and tested compiler on Windows for tesseract-ocr). I
tried to make step by step tutorial. Anyway you will need to find way how
to integrate it to Eclipse, but I expect you are familiar with your tool
chain....

[1]
http://www.sk-spell.sk.cx/compiling-leptonica-and-tesseract-ocr-with-mingwmsys


> set
> ti=<installdir>\tesseract-3.02.02-win32-lib-include-dirs\include\tesseract
> set li=<installdir>\leptonica-1.68-win32-lib-include-dirs\include\leptonica
> g++ -c -I%li% -I%ti% src\MinAreaRects.cpp
>
> or...
>
> set
> ti=<installdir>\tesseract-ocr-3.02.02-src\Tesseract-OCR\include\tesseract
> set li=<installdir>\leptonica-1.68-win32-lib-include-dirs\include\leptonica
> g++ -c -I%li% -I%ti%\ccmain -I%ti%\ccutil -I%ti%\api -I%ti%\ccstruct
> src\MinAreaRects.cpp
>
> i.e. - I assume that when compiling with the
> 'tesseract-3.02.02-win32-lib-include-dirs' then only one path entry is
> needed: '\include\tesseract'.
> And when compiling with 'tesseract-ocr-3.02.02-src'', then the relevant
> subdirectories (like \Tesseract-OCR\api) DO need to be added to the
> compiler's include path.
>
> Since I don't have VS2008, I can't attempt to use the Microsoft Visual C++
> toolchain (having no 'cl.exe').
>
> >You might want to look at.[3] which contains a very short tesseract
> sample app (essentially the same as tesseract.exe).
>
> I assume that references to using 'libtesseract' (at least in terms of ver
> 3.02) really means linking 'libtesseract302.dll' or 'libtesseract302d.dll'
> from the downloaded lib directory.  Is the d version for debugging?  So,
> the library entry for the linker should be 'tesseract302' or
> 'tesseract302d' (dropping the lib prefix and the .dll suffix).  Just wanna
> be sure I've dotted all my i's.  In my code snippet below, the variable
> declaration works (indicating a good compile).  But the instantiation just
> below it never does (indicating a bad link).
>
> TessBaseAPI *tessa;
> tessa = new TessBaseAPI();
>
> Correct me if I'm wrong about any of this.  Thanks again.
>
>  --
> --
> 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/groups/opt_out.
>
>
>

-- 
-- 
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/groups/opt_out.


Reply via email to