On Fri, Feb 22, 2013 at 11:14 PM, Nayra Ahmed <[email protected]> wrote:
> Hi,
> I'm trying to run this code
>
>
> #define __MSW32__
> #include "stdafx.h"
> #include <ccutil.h>
> #include "windows.h"
> #include<leptonica\allheaders.h>
> #include<tesseract-3.02\api\baseapi.h>
> #include <baseapi.h>
> #include <allheaders.h>
> #include<iostream>
> using namespace std;
> Pix *pix;
>
> int main()
> {
> tesseract::TessBaseAPI *myOCR =new tesseract::TessBaseAPI();
> system("pause");
> return 0;
> }
>
> but I have this errors :
>
> 'try.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the
> PDB file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open
> the PDB file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open
> the PDB file
> 'try.exe': Loaded 'C:\BuildFolder\lib\libtesseract302d.dll', Symbols loaded.
> 'try.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Cannot find or open the
> PDB file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the
> PDB file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the
> PDB file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the
> PDB file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open
> the PDB file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the
> PDB file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Cannot find or open the PDB
> file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the
> PDB file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the
> PDB file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB
> file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the
> PDB file
> 'try.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open
> the PDB file
> 'try.exe': Loaded 'C:\BuildFolder\lib\liblept168d.dll', Symbols loaded.
> The program '[1192] try.exe: Native' has exited with code -1072365566
> (0xc0150002).
>
> I built tesseract and leptonica following the steps from this website
> http://tesseract-ocr.googlecode.com/svn/trunk/vs2008/doc/building.html
>
> but when built leptonica I have this error
> Error 1 error MSB3073: The command "if exist
> "C:\BuildFolder\leptonica-1.68\vs2008\LIB Release\ioformats_reg.exe" del
> "C:\BuildFolder\leptonica-1.68\vs2008\LIB Release\ioformats_reg.exe"
> fsutil hardlink create "C:\BuildFolder\leptonica-1.68\vs2008\LIB
> Release\ioformats_reg.exe"
> "C:\BuildFolder\leptonica-1.68\vs2008\prog_projects\ioformats_reg\LIB
> Release\ioformats_reg.exe"
> :VCEnd" exited with code 1.
>
> I work in visual studio 2010 , tesseract 3.02 and leptonica 1.68,
> Any help please ...
I suggest you first take a look at "Programming with libtesseract" [1]
and download the APIExample Sample from [2] (the tesseract windows
installer downloads this for you) to get a very basic idea of how
libtesseract-based apps should be structured when using Visual Studio
2008. See [3] when using Visual Studio 2010.
I gather you are not very experienced with c++? When you use "new" it
is a very good habit to also use "delete", otherwise you will leak
memory.
Visual Studio has a very useful debugger. Learn how to use it (instead
of adding a system("pause") command) :). A very good exercise is to
build APIExample and step through the top-level calls.
The errors building leptonica will only appear if you have problems
building the ioformats_reg app. They shouldn't show up if you are only
building liblept168, so you must not have correctly followed the
instructions at [4] and [5].
[1] http://tesseract-ocr.googlecode.com/svn/trunk/vs2008/doc/programming.html
[2]
http://tesseract-ocr.googlecode.com/files/tesseract-ocr-API-Example-vs2008.zip
[3] http://tesseract-ocr.googlecode.com/svn/trunk/vs2008/doc/vs2010-notes.html
[4] http://tpgit.github.com/UnOfficialLeptDocs/vs2008/index.html
[5] http://tpgit.github.com/UnOfficialLeptDocs/vs2008/vs2010-notes.html
--
--
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.