On Sat, Apr 20, 2013 at 2: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. >
Why couldn't you install TortoiseSVN? I found it a pretty straightforward process (i.e. trivial). > 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. > > Well, apparently there are some important new changes that haven't been included in *any* zip file. Thus zdenko's advice to get it from the svn repository. Github? I'm pretty sure everything relevant is on googlecode.com. > >"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? > Yes. > I don't have Visual Studio and I don't want to buy it. Thus, all the > vcproj files are evidently useless to me. > Microsoft as usual is trying to hide how to download the earlier free visual studio versions. However, stackoverflow does have a page [1] that discusses how to still get it. [2] is the link they give for VS2008 Express SP1. [1] http://stackoverflow.com/questions/4482159/where-can-i-download-visual-studio-express-2008-not-2010 [2] http://download.microsoft.com/download/E/8/E/E8EEB394-7F42-4963-A2D8-29559B738298/VS2008ExpressWithSP1ENUX1504728.iso Since you seem to be having so much trouble, I would suggest first getting things to work with Visual Studio 2008 Express. Then once you know how things are *supposed* to work (including looking at the various compiler and linker settings), you can try other build systems. I suppose it would be nice to have some detailed docs on how to build with MinGW but I don't have enough experience to write that. > 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: > > 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. > Yes. Alternatively, with Windows Vista & above you can create symbolic links and name them anything you want using the mklink command [3]. For Windows XP you can make hardlinks (which almost act like symbolic links but not quite) using the fsutil command. [3] http://en.wikipedia.org/wiki/Symbolic_link#Windows_7_.26_Vista_symbolic_link > Is the d version for debugging? > Yes. > 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. > Someone else will have to answer the MingGW specific questions. Sorry. -- -- 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.

