I haven't tried softifreeocr. Does it use the dll or run the exe directly? I
made a few changes with the build for 2.04 that may be affecting other
modules:
1. The compile is now for statically linked C-runtime, so the exe will most
likely work on recent windows versions without having to download the VC++
redistributables. This was a major problem that people had pointed out, and
it should just run when there is a .exe distribution.

2. The other big change is making it output to stderr instead of
tesseract.log. A lot of people complained about this also. Now if you just
run tesseract without any arguments, you at least get a usage message. If it
is using the exe instead of the dll, this might be why softifreeocr doesn't
work. It might help further if you could define "doesn't work" in more
detail.

3. The third major change is to link with subsystem console instead of
windows. This is needed to make output to stderr actually appear in your
console window instead of going down a windows black hole. Some windows apps
may struggle to run a console app as a sub-process. That might be another
reason it doesn't work with softifreeocr. A change to the parameters of
CreateProcess may be required.

You could experiment with undoing various parts of these changes to find out
why softifreeocr doesn't work:

1. Right click on the tesseract project ->properties->c/c++->code
generation->runtime library. [Multithreaded (debug or not) dll].

2. In tprintf.cpp, line 31, put tesseract.log in the empty ""

3. Right click on the tesseract project
->properties->linker->system->subsystem set to windows. I just noticed that
the preprocessor define for _WINDOWS is still set, when this should be
_CONSOLE to match subsystem console and _WINDOWS to match subsystem windows.
I will fix this to _CONSOLE for the real release.

Ray.



On Sun, Jun 7, 2009 at 4:50 AM, 74yrs old <[email protected]> wrote:

> Ray,
> I could not wait for your clarification.
>
> * I)tesseract.sln *
>  Anyhow I downloaded again from the source (svn) and compiled in Visual
> Studio2008(VC++) by clicking on tesseract.sln and *not*tesseract_2008.sln. 
> generated tesseract.exe(
> *debug* file of 2.86mb) which found works well. *Unfortunately it does not
> work in SoftiFreeOCR* even phototest.tif (which I used testing Kannada by
> replacing tesseract.exe in windows folder)  Then I tested on  Command Prompt
> found phtotest.tif as well as Kannada.tif works well.
>
> compiled in Visual Studio2008(VC++) by clicking on tesseract.sln and *not
> *tesseract_2008.sln. generated tesseract.exe( *Release* file of 735KB)
> which found works well. *Unfortunately it does not work in SoftiFreeOCR*even 
> phototest.tif (which I used testing Kannada by replacing tesseract.exe
> in windows folder)  Then I tested on  Command Prompt found phtotest.tif as
> well as Kannada.tif works well.
>
> *II)Tesseract_2008.sln*
> compiled in Visual Studio2008(VC++) by clicking on  tesseract_2008.sln.
> generated tesseract.exe( *Release* file of 735KB) which found works well.
> *Unfortunately it does not work in SoftiFreeOCR* even phototest.tif (which
> I used testing Kannada by replacing tesseract.exe in windows folder)  Then I
> tested on  Command Prompt found phtotest.tif as well as Kannada.tif works
> well.
>   Note: other six exe have not tested.
>
> Now SoftiFreeOCR does not work anymore for testing Kannada as well as
> english.if used exe files of 2.04 version.
> With regards,
> -sriranga(76yrs old)
>
>
>
> On Sat, Jun 6, 2009 at 10:11 PM, 74yrs old <[email protected]>wrote:
>
>> Ray,
>> whether I have to download from Source(svn) and re-compile in
>> VC2008(VC++)?
>> -sriranga(76yrsold)
>>
>>
>> On Sat, Jun 6, 2009 at 9:54 PM, Ray Smith <[email protected]> wrote:
>>
>>> Tesseract_2008.sln is a red herring. It is not intended to be a part of
>>> 2.04. I modified tesseract.sln to suit vc++ 2008, hence the comment that
>>> vc++2005 is no longer supported. Please build with tesseract.sln
>>> Ray.
>>>
>>> On Jun 5, 2009 11:21 PM, "74yrs old" <[email protected]> wrote:
>>>
>>> Yes. If tried the tesseract_2008.sln and generate exe (release) and if
>>> run the same - it will crashed with windows error message of encountered. It
>>> does not generate log file or output is blank. Ray may be working on the
>>> issue.
>>>
>>>  On Sat, Jun 6, 2009 at 9:28 AM, nguyenq <[email protected]> wrote: >
>>> > > I rebuilt and it was st...
>>>
>>>
>>>
>>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to