On Thu, Aug 23, 2012 at 9:24 PM, Davor Pleskina <[email protected]>wrote:
> Hello, > > I tried to use 1.69. But it happens 1.68 has the same error (wrong > definition) in allheaders.h. Never mentioned leptprotos.h. > > http://tesseract-ocr.googlecode.com/svn-history/r683/trunk/vs2008/doc/setup.html : First create an empty directory where you will unpack all the required downloads. Assume you call this directory C:\BuildFolder. Download the Leptonica 1.68 pre-built binary package (leptonica-1.68-win32-lib-include-dirs.zip) from: http://code.google.com/p/leptonica/downloads/detail?name=leptonica-1.68-win32-lib-include-dirs.zip and unpack it to C:\BuildFolder. It looks like you downloaded source code of leptonica and not leptonica-1.68-win32-lib-include-dirs.zip e.g. you did not follow documentations. As I said - I rarely used C/C++ (last thing I made in C was some indexing > function for Clipper; I am mostly Delphi programmer) so that error looked > like a showstopper for me. > > Documentation is a bit confusing - you find many examples about what to > download and where to extract, but not folders not contents are named as > stated in documentation. So a "builder" must guess and download additional > packages and set up many things by himself. > What you need to guess? I did not write that docs but for me it was easy to follow it. There is only one problem - link to tesseract-ocr-3.02-vs2008.zip. And I think that "builder" can build tesseract without "Cygwin coreutils". Please be exact - write what is in documentation and what error message you got when you followed it, so we can improve it. Vague statements like "a bit confusing", "guess and download additional packages and set up many things by himself" do not help. > Also, forcing directory structure to reflect some artist's imagination is > ridiculous. Ever since "relative" paths were invented. > > Tesseract solution files use relative paths (see [1]). You can find it easily - just move "C:\BuildFolder\" to "C:\Projects\BuildFolder\" and build will work. Or did you find somewhere absolute path (it can happen)? Even with relative paths you "force" directory structure "..\..\..\include\leptonica". You just try force us to mix 2 different libs in one (to leptonica within tesseract). [1] http://code.google.com/p/tesseract-ocr/source/browse/trunk/vs2008/libtesseract/libtesseract.vcproj?r=702#48 I would recommend fixing allheaders.h and pushing "build copy" in SVN to > the phase where it would not depend on directory structure or God's will to > compile. Otherwise all of that is incredibly cool and usable stuff. Let The > World have benefits from it. > > Project provides source code of tesseract and allheaders.h is part of leptonica (other project). It does not make sense to distribute allheaders.h without library files. And tesseract and leptonica are multiplaform libraries. Should we push to svn binary libs for all platforms? For all compilers? Nonsense - in current status svn is too big. Regards, > Davor > > On Thursday, August 23, 2012 8:41:51 PM UTC+2, zdenop wrote: > >> >> On Thu, Aug 23, 2012 at 6:20 PM, Davor Pleskina <[email protected]>wrote: >> >>> >>> >>> On Thursday, August 23, 2012 5:06:52 PM UTC+2, Nick White wrote: >>>> >>>> On Thu, Aug 23, 2012 at 07:01:42AM -0700, Davor Pleskina wrote: >>>> > Now I understand what my coworker meant by "being optimistic about >>>> getting help >>>> > via forums". :-S >>>> >>>> I think the implication there is rather unfair - you've had 2 >>>> different people step in to try and help you with your problem >>>> pretty quickly, each time offering constructive advice. >>>> >>>> Anyway, best of luck solving your problem. I'm fortunate enough not >>>> to have any dealings with any MSVC programs, so am unable to help. >>>> >>>> Nick >>>> >>> >>> That was just a joke. However, both pointed me out to change the way to >>> search for solution, so I finally find the right one (the answer I >>> expected) here, so for archives: >>> >>> http://tpgit.github.com/**UnOfficialLeptDocs/vs2008/** >>> building-liblept.html<http://tpgit.github.com/UnOfficialLeptDocs/vs2008/building-liblept.html> >>> >>> leptprotos.h has the wrong declaration for setPixMemoryManager() unde**r >>> Windows. Change it from: >>> >>> >>> LEPT_DLL extern void setPixMemoryManager ( void * ( allocator (size_t ) ), >>> void ( deallocator ( void * ) ) ); >>> >>> to: >>> LEPT_DLL extern void setPixMemoryManager (void *((*allocator)(size_t)), >>> void ((*deallocator)(void *)) ); >>> >>> What version of leptonica did you used? It is known that svn version can >> be compiled "out of box" with for VC++ 2008 Express (and Pro) on Windows XP >> (and Windows 7). And I know that at least one non-programmer was able to >> compile it following documentation... >> >> So if there are some conditions I would be glad if we can improve >> documentation. >> >> BTW: I did not need to change leptprotos.h - I have there >> LEPT_DLL extern void setPixMemoryManager ( void *((*allocator)(size_t)), >> void ((*deallocator)(void *)) ); >> >> -- >> Zdenko >> > -- > 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 > -- Zdenko -- 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

