problem in running tesseract.exe

381 views
Skip to first unread message

Hasnat

unread,
May 27, 2009, 2:40:21 AM5/27/09
to Tesseract
Dear All,
            I am experiencing problem in running tesseract.exe. The error messages are attached with this email. So, far I observed that tesseract.exe is running successfully in those systems where Visual Studio dot NET is installed. I am wondering whether I am missing any prerequisites are missing. I would like to add here that it fails even if Microsoft .NET Framework Version 2.0 Redistributable Package (x86) and Microsoft Visual C++ 2005 Redistributable Package (x86) are installed.

Any immediate help will be really appreciable.
 
Regards,
----
Hasnat
1.JPG
2.JPG

Remi Thomas

unread,
May 27, 2009, 3:40:32 AM5/27/09
to tesseract-ocr
Hi,

Try execute it from depends.exe
http://www.dependencywalker.com/
This program will tell you the missing DLLs

Rémi
>  1.JPG
> 9KViewDownload
>
>  2.JPG
> 27KViewDownload

74yrs old

unread,
May 27, 2009, 3:40:50 AM5/27/09
to tesser...@googlegroups.com
Hi Hasant,
try the following commandline: c:\Documents and settings\crblp\desktop\tesseract.exe temp1.tiff out -l ban
I hope it will works - provided tesseract.exe not tesseract_exe.
-sriranga(76yrsold)

Hasnat

unread,
May 27, 2009, 9:54:06 AM5/27/09
to tesser...@googlegroups.com
In the command line tesseract_exe was the name of the directory. I used tesseract as command and temp1.tiff out -l ban as its arguments.

I am just wondering whether there is any stand alone tesseract.exe available which can run independently without any dependency. If
yes then please provide me the link.

Hasnat
Center for Research on Bangla Language Processing (CRBLP)
http://mhasnat.googlepages.com/

74yrs old

unread,
May 27, 2009, 10:39:50 AM5/27/09
to tesser...@googlegroups.com
Hasnat,
tesseract.exe should work as standalone provided tessdata directory also included in the desktop. Perhaps your exe might have corrupted and as such attached tesseract.exe  - please ensure delete your name suffixed before use. Please feedback to me
With regards,
-sriranga(76yrsold)
tesseract.exe-hasnat

Hasnat

unread,
May 27, 2009, 12:29:24 PM5/27/09
to tesser...@googlegroups.com
Thank you so much for sending the tesseract.exe file. I will test this and let you know the update.

Regards,
----

Hasnat
Center for Research on Bangla Language Processing (CRBLP)
http://mhasnat.googlepages.com/


Hasnat

unread,
Jun 9, 2009, 7:11:44 AM6/9/09
to tesser...@googlegroups.com
Unfortunately the exe file is also not working. I run dependency walker suggested by Remi and found that two dll files msvcp90.dll and msvcr90.dll are missing. Then I downloaded those and put those to the Windows/System directory. Then I run the dependency walker again and the following error message appeared:
 
Error: The Side-by-Side configuration information for "c:\documents and settings\crblp\desktop\TESSERACT.EXE" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
 
Can anyone in this group find out the reason why tesseract.exe is not working in all the systems and what additional requirements need to be fullfill in order to run this successfully? As maximum members of this group has Visual Studio dot Net 2005/2008 installed on their system so they might not observe the problem. I hope to get the solution of the problem soon.
 

Remi Thomas

unread,
Jun 9, 2009, 8:20:47 AM6/9/09
to tesseract-ocr
Hi,

If you compile the project with C++ code generation option "Multi-
threaded /MT" instead of the default "Muti-threaded DLL /MD" then you
have no dependencies and the exe should work on any 32 bit platform
(Windows 95 included).
In this mode you only have dependence to system DLL WS2_32.DLL,
USER32.DLL and KERNEL32.DLL.

Get this EXE here http://www.pixel-technology.com/freeware/tessnet2/tesseract_204.rar

Rémi

On Jun 9, 1:11 pm, Hasnat <mhas...@gmail.com> wrote:
> Unfortunately the exe file is also not working. I run dependency walker
> suggested by Remi and found that two dll files msvcp90.dll and msvcr90.dll
> are missing. Then I downloaded those and put those to the Windows/System
> directory. Then I run the dependency walker again and the following error
> message appeared:
>
> Error: The Side-by-Side configuration information for "c:\documents and
> settings\crblp\desktop\TESSERACT.EXE" contains errors. This application has
> failed to start because the application configuration is incorrect.
> Reinstalling the application may fix this problem (14001).
>
> Can anyone in this group find out the reason why tesseract.exe is not
> working in all the systems and what additional requirements need to be
> fullfill in order to run this successfully? As maximum members of this group
> has Visual Studio dot Net 2005/2008 installed on their system so they might
> not observe the problem. I hope to get the solution of the problem soon.
>
> On 5/27/09, Hasnat <mhas...@gmail.com> wrote:
>
>
>
>
>
> > Thank you so much for sending the tesseract.exe file. I will test this and
> > let you know the update.
>
> > Regards,
> > ----
> > Hasnat
> > Center for Research on Bangla Language Processing (CRBLP)
> >http://mhasnat.googlepages.com/
>
> >  On Wed, May 27, 2009 at 8:39 PM, 74yrs old <withblessi...@gmail.com>wrote:
>
> >> Hasnat,
> >> tesseract.exe should work as standalone provided tessdata directory also
> >> included in the desktop. Perhaps your exe might have corrupted and as such
> >> attached tesseract.exe  - please ensure delete your name suffixed before
> >> use. Please feedback to me
> >> With regards,
> >> -sriranga(76yrsold)
>
> >> On Wed, May 27, 2009 at 7:24 PM, Hasnat <mhas...@gmail.com> wrote:
>
> >>> In the command line tesseract_exe was the name of the directory. I used
> >>> *tesseract* as command and *temp1.tiff out -l ban* as its arguments.
>
> >>> I am just wondering whether there is any stand alone tesseract.exe
> >>> available which can run independently without any dependency. If
> >>> yes then please provide me the link.
>
> >>> Hasnat
> >>> Center for Research on Bangla Language Processing (CRBLP)
> >>>http://mhasnat.googlepages.com/
>
> >>> On Wed, May 27, 2009 at 1:40 PM, 74yrs old <withblessi...@gmail.com>wrote:
>
> >>>> Hi Hasant,
> >>>> try the following commandline: c:\Documents and
> >>>> settings\crblp\desktop\tesseract.exe temp1.tiff out -l ban
> >>>> I hope it will works - provided tesseract.exe not tesseract_exe.
> >>>> -sriranga(76yrsold)
>
> >>>> On Wed, May 27, 2009 at 12:10 PM, Hasnat <mhas...@gmail.com> wrote:
>
> >>>>> Dear All,
> >>>>>             I am experiencing problem in running tesseract.exe. The
> >>>>> error messages are attached with this email. So, far I observed that
> >>>>> tesseract.exe is running successfully in those systems where Visual Studio
> >>>>> dot NET is installed. I am wondering whether I am missing any prerequisites
> >>>>> are missing. I would like to add here that it fails even if Microsoft .NET
> >>>>> Framework Version 2.0 Redistributable Package (x86) and Microsoft Visual C++
> >>>>> 2005 Redistributable Package (x86) are installed.
>
> >>>>> Any immediate help will be really appreciable.
>
> >>>>> Regards,
> >>>>> ----
> >>>>> Hasnat
>
> --

Hasnat

unread,
Jun 9, 2009, 11:12:13 PM6/9/09
to tesser...@googlegroups.com
Dear Remi Thomas,
                             thank you so much for your suggestions and help. It is working without any problem.
 

Ray Smith

unread,
Jun 11, 2009, 6:05:40 PM6/11/09
to tesser...@googlegroups.com
Nice to hear that works. The 2.04 sln builds this way by default. When 2.04 is fully released I will add a tarball containing an exe that is built this way, so a lot of users will be able to just download it and run...
Ray.

74yrs old

unread,
Jun 12, 2009, 5:13:22 AM6/12/09
to tesser...@googlegroups.com
Hasnat,
What was the problem with tesseract.exe and how did you solve the problem? Will please elaborate for the information of members of the forum.

Hasnat

unread,
Jun 15, 2009, 1:23:29 AM6/15/09
to tesser...@googlegroups.com
The problem statement and its solution is stated throughout this email thread.

The problem was that the Tesseract.exe was not running successfully in all the systems. It run without any problem in those systems where the dependent prerequisites are installed. In our systems it is running without any problem as we have VS 2005/2008 already installed. However, it is identified as a problem on those windows systems where VS 2005/2008 is not installed. I was asking for such a Tesseract distribution which will exhibit same behavior in all systems regardless of what is installed previously.

The solution is given by Remi Thomas. You will find the exe here: http://www.pixel-technology.com/freeware/tessnet2/tesseract_204.rar

Answer here:


If you compile the project with C++ code generation option "Multi-
threaded /MT" instead of the default "Muti-threaded DLL /MD" then you
have no dependencies and the exe should work on any 32 bit platform
(Windows 95 included).
In this mode you only have dependence to system DLL WS2_32.DLL,
USER32.DLL and KERNEL32.DLL.

Thanks goes to Remi for his valuable guideline.

 
Regards,
----
Hasnat
Center for Research on Bangla Language Processing (CRBLP)
http://mhasnat.googlepages.com/


74yrs old

unread,
Jun 15, 2009, 5:46:35 AM6/15/09
to tesser...@googlegroups.com
Thanks for the useful information reg: problem faced and its solution.

Ray Smith

unread,
Jun 17, 2009, 1:09:44 AM6/17/09
to tesser...@googlegroups.com
The 2.04 vcproj file does this for all executables, but not the DLL, as I thought that might lead to troublesome malloc/free mismatch errors.

To DLL users: Is if better for the DLL to be built with static linking if the C_runtime as well, or is DLL linking better?

Ray.
Reply all
Reply to author
Forward
0 new messages