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.
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. Also, forcing directory structure to reflect some artist's imagination is ridiculous. Ever since "relative" paths were invented. 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. 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]<javascript:> > > 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 >> >> leptprotos.h has the wrong declaration for setPixMemoryManager() under >> 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

