have a look on http://code.google.com/p/tesseractdotnet/

On Fri, May 20, 2011 at 3:04 PM, Sarel van der Merwe <sfvdme...@gmail.com>wrote:

> Hi,
>
> Will it be possible to create a dll file so that i can use it inside Visual
> Studio 2010 c#   ?
> I'm really stuck.
>
> Please help
>
> Thanks
>
> Sarel
>
>
>
>
>
>
> On Fri, May 20, 2011 at 2:15 PM, zdenko podobny <zde...@gmail.com> wrote:
>
>>  Hi,
>>
>> It is written on main page: supported platform is Windows (x86/32) with
>> Visual C++ Express 2008 [1]. As I heard it is not a big problem to compile
>> VS2008 project files (in directory vs2008) in VS2010  ;-)
>>
>> In svn version there is also initial support for VS2010 (directory vs2010)
>> created Michael Lutz. But there are some issues that need to be fixed
>> (e.g. debug version is not working at the moment - release version should be
>> ok). SVN version should be used by developers...
>>
>> Because I still use VS 2008 (= I can not help with VS2010 issues) -
>> patches and improvements for VS2010 are welcomed.
>>
>> Zdenko
>>
>> [1] http://code.google.com/p/tesseract-ocr/#Supported_Platforms
>>
>>
>> On Fri, May 20, 2011 at 1:35 PM, barroque <jian...@gmail.com> wrote:
>>
>>> Hi there,
>>>
>>> I'm a newbie on OCR. I tried to play with tesseract but encountered
>>> some problems whiling compiling tesseract (latest rev. 582). by Visual
>>> C++ 2010 express, the error messages are like the following.  Though
>>> the tesseract.exe could be generated, but I'm not sure what I'm
>>> missing here... Moreover, when I try to compile the debug version,
>>> more error pumped and no tesseract.exe generated.   Can you please
>>> help?  Thanks in advance.
>>>
>>>
>>> Release version
>>> ============
>>> 15>          c:\jed\devel\tesseract-ocr-read-only\vs2010\include
>>> \leptonica\environ.h(277) : see previous definition of 'snprintf'
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol @__security_check_cookie@4
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol __imp__towlower
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol __imp__iswupper
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol __imp__iswlower
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol __imp__printf
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol __imp__fopen
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol __imp__iswalpha
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol __imp__setlocale
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol __imp__towupper
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol __imp__fclose
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol __imp__iswpunct
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol __imp__exit
>>> 18>unicharset_extractor.obj : error LNK2001: unresolved external
>>> symbol __imp__iswdigit
>>> 18>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
>>> 18>ccutil.lib(strngs.obj) : error LNK2001: unresolved external symbol
>>> __imp__strchr
>>> 18>ccutil.lib(strngs.obj) : error LNK2001: unresolved external symbol
>>> __imp___snprintf
>>> 18>ccutil.lib(boxread.obj) : error LNK2001: unresolved external symbol
>>> __imp__sscanf
>>> 18>ccutil.lib(boxread.obj) : error LNK2001: unresolved external symbol
>>> __imp__strncpy
>>> 18>ccutil.lib(boxread.obj) : error LNK2001: unresolved external symbol
>>> __imp__fgets
>>> 18>ccutil.lib(boxread.obj) : error LNK2001: unresolved external symbol
>>> __imp__strrchr
>>> 18>ccutil.lib(unicharset.obj) : error LNK2001: unresolved external
>>> symbol __imp__sprintf
>>> 18>ccutil.lib(unicharset.obj) : error LNK2001: unresolved external
>>> symbol __imp____iob_func
>>> 18>ccutil.lib(unicharset.obj) : error LNK2001: unresolved external
>>> symbol __imp__strtol
>>> 18>ccutil.lib(unicharset.obj) : error LNK2001: unresolved external
>>> symbol __imp__fprintf
>>> 18>ccutil.lib(unicharset.obj) : error LNK2001: unresolved external
>>> symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
>>> 18>ccutil.lib(memry.obj) : error LNK2001: unresolved external symbol
>>> __imp__free
>>> 18>ccutil.lib(memry.obj) : error LNK2001: unresolved external symbol
>>> __imp__calloc
>>> 18>ccutil.lib(memry.obj) : error LNK2001: unresolved external symbol
>>> __imp__malloc
>>> 18>ccutil.lib(errcode.obj) : error LNK2001: unresolved external symbol
>>> __imp__abort
>>> 18>ccutil.lib(errcode.obj) : error LNK2001: unresolved external symbol
>>> __imp___vsnprintf
>>> 18>ccutil.lib(tprintf.obj) : error LNK2001: unresolved external symbol
>>> __imp__vsprintf
>>> 18>ccutil.lib(tprintf.obj) : error LNK2001: unresolved external symbol
>>> _atexit
>>> 18>ccutil.lib(unicharmap.obj) : error LNK2001: unresolved external
>>> symbol "void __stdcall `eh vector destructor iterator'(void *,unsigned
>>> int,int,void (__thiscall*)(void *))" (??_M@YGXPAXIHP6EX0@Z@Z)
>>> 18>ccutil.lib(unicharmap.obj) : error LNK2001: unresolved external
>>> symbol "void __stdcall `eh vector constructor iterator'(void
>>> *,unsigned int,int,void (__thiscall*)(void *),void (__thiscall*)(void
>>> *))" (??_L@YGXPAXIHP6EX0@Z1@Z)
>>> 18>ccutil.lib(params.obj) : error LNK2001: unresolved external symbol
>>> __imp__fread
>>> 18>ccutil.lib(params.obj) : error LNK2001: unresolved external symbol
>>> __imp__fwrite
>>> 18>ccutil.lib(params.obj) : error LNK2001: unresolved external symbol
>>> __imp__ftell
>>> 18>ccutil.lib(params.obj) : error LNK2001: unresolved external symbol
>>> "const type_info::`vftable'" (??_7type_info@@6B@)
>>> 18>ccutil.lib(elst.obj) : error LNK2001: unresolved external symbol
>>> __imp__qsort
>>> 18>ccutil.lib(ambigs.obj) : error LNK2001: unresolved external symbol
>>> __imp__rewind
>>> 18>ccutil.lib(ambigs.obj) : error LNK2001: unresolved external symbol
>>> __imp__strtok_s
>>> 18>.\bin\unicharset_extractor.exe : fatal error LNK1120: 42 unresolved
>>> externals
>>>
>>>
>>> Debug version
>>> ==========
>>> 1>------ Build started: Project: classify, Configuration: Debug Win32
>>> ------
>>> 2>------ Build started: Project: ccstruct, Configuration: Debug Win32
>>> ------
>>> 3>------ Build started: Project: viewer, Configuration: Debug Win32
>>> ------
>>> 4>------ Build started: Project: libtesseract_training, Configuration:
>>> Debug Win32 ------
>>> 2>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 3>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 5>------ Build started: Project: libtesseract_tessopt, Configuration:
>>> Debug Win32 ------
>>> 6>------ Build started: Project: cube, Configuration: Debug Win32
>>> ------
>>> 7>------ Build started: Project: neural_networks, Configuration: Debug
>>> Win32 ------
>>> 7>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 6>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 8>------ Build started: Project: cutil, Configuration: Debug Win32
>>> ------
>>> 9>------ Build started: Project: ccmain, Configuration: Debug Win32
>>> ------
>>> 8>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 9>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 10>------ Build started: Project: textord, Configuration: Debug Win32
>>> ------
>>> 10>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 11>------ Build started: Project: wordrec, Configuration: Debug Win32
>>> ------
>>> 12>------ Build started: Project: image, Configuration: Debug Win32
>>> ------
>>> 11>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 12>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 13>------ Build started: Project: dict, Configuration: Debug Win32
>>> ------
>>> 13>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 14>------ Build started: Project: ccutil, Configuration: Debug Win32
>>> ------
>>> 14>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 15>------ Build started: Project: libtesseract, Configuration: Debug
>>> Win32 ------
>>> 16>------ Build started: Project: combine_tessdata, Configuration:
>>> Debug Win32 ------
>>> 15>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 17>------ Build started: Project: wordlist2dawg, Configuration: Debug
>>> Win32 ------
>>> 5>  Skipping... (no relevant changes detected)
>>> 5>  tessopt.cpp
>>> 4>  Skipping... (no relevant changes detected)
>>> 4>  commontraining.cpp
>>> 16>  Skipping... (no relevant changes detected)
>>> 16>  combine_tessdata.cpp
>>> 5>  libtesseract_tessopt.vcxproj -> C:\JED\devel\tesseract-ocr-read-
>>> only\vs2010\Debug\libtesseract_tessopt.lib
>>> 16>C:\Program Files\MSBuild\Microsoft.Cpp
>>> \v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not
>>> find WindowsSDKDir variable from the registry.  TargetFrameworkVersion
>>> or PlatformToolset may be set to an invalid version number.
>>> 17>  Skipping... (no relevant changes detected)
>>> 17>  wordlist2dawg.cpp
>>> 4>  libtesseract_training.vcxproj -> C:\JED\devel\tesseract-ocr-read-
>>> only\vs2010\Debug\libtesseract_training.lib
>>> 18>------ Build started: Project: unicharset_extractor, Configuration:
>>> Debug Win32 ------
>>> 17>C:\Program Files\MSBuild\Microsoft.Cpp
>>> \v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not
>>> find WindowsSDKDir variable from the registry.  TargetFrameworkVersion
>>> or PlatformToolset may be set to an invalid version number.
>>> 17>C:\Program Files\MSBuild\Microsoft.Cpp
>>> \v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not
>>> find WindowsSDKDir variable from the registry.  TargetFrameworkVersion
>>> or PlatformToolset may be set to an invalid version number.
>>> 19>------ Build started: Project: tesseract, Configuration: Debug
>>> Win32 ------
>>> 17>C:\Program Files\MSBuild\Microsoft.Cpp
>>> \v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not
>>> find WindowsSDKDir variable from the registry.  TargetFrameworkVersion
>>> or PlatformToolset may be set to an invalid version number.
>>> 17>C:\Program Files\MSBuild\Microsoft.Cpp
>>> \v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not
>>> find WindowsSDKDir variable from the registry.  TargetFrameworkVersion
>>> or PlatformToolset may be set to an invalid version number.
>>> 19>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms
>>> \Win32\PlatformToolsets\Windows7.1SDK
>>> \Microsoft.Cpp.Win32.Windows7.1SDK.targets(19,5): error : Windows 7.1
>>> SDK not found. Please make sure that the Windows 7.1 SDK is installed
>>> on the machine.
>>> 16>LINK : fatal error LNK1104: cannot open file '..\vs2008\lib
>>> \leptonlibd.lib'
>>> 17>C:\Program Files\MSBuild\Microsoft.Cpp
>>> \v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not
>>> find WindowsSDKDir variable from the registry.  TargetFrameworkVersion
>>> or PlatformToolset may be set to an invalid version number.
>>> 20>------ Build started: Project: mftraining, Configuration: Debug
>>> Win32 ------
>>> 17>LINK : fatal error LNK1104: cannot open file '..\vs2008\lib
>>> \leptonlibd.lib'
>>> 21>------ Build started: Project: cntraining, Configuration: Debug
>>> Win32 ------
>>> 18>  Skipping... (no relevant changes detected)
>>> 18>  unicharset_extractor.cpp
>>> 18>LINK : fatal error LNK1104: cannot open file 'C:\JED\devel
>>> \tesseract-ocr-read-only\vs2010\Debug\ccutil.lib'
>>> 20>  Skipping... (no relevant changes detected)
>>> 20>  mftraining.cpp
>>> 20>  mergenf.cpp
>>> 20>  commontraining.cpp
>>> 21>  Skipping... (no relevant changes detected)
>>> 21>  commontraining.cpp
>>> 21>  cntraining.cpp
>>> 20>C:\Program Files\MSBuild\Microsoft.Cpp
>>> \v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not
>>> find WindowsSDKDir variable from the registry.  TargetFrameworkVersion
>>> or PlatformToolset may be set to an invalid version number.
>>> 20>C:\Program Files\MSBuild\Microsoft.Cpp
>>> \v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not
>>> find WindowsSDKDir variable from the registry.  TargetFrameworkVersion
>>> or PlatformToolset may be set to an invalid version number.
>>> 20>C:\Program Files\MSBuild\Microsoft.Cpp
>>> \v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not
>>> find WindowsSDKDir variable from the registry.  TargetFrameworkVersion
>>> or PlatformToolset may be set to an invalid version number.
>>> 20>C:\Program Files\MSBuild\Microsoft.Cpp
>>> \v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not
>>> find WindowsSDKDir variable from the registry.  TargetFrameworkVersion
>>> or PlatformToolset may be set to an invalid version number.
>>> 21>LINK : fatal error LNK1104: cannot open file '..\vs2008\lib
>>> \leptonlibd.lib'
>>> 20>LINK : fatal error LNK1104: cannot open file '..\vs2008\lib
>>> \leptonlibd.lib'
>>> ========== Build: 2 succeeded, 19 failed, 0 up-to-date, 0 skipped
>>> ==========
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "tesseract-ocr" group.
>>> To post to this group, send email to tesseract-ocr@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> tesseract-ocr+unsubscr...@googlegroups.com
>>> 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 post to this group, send email to tesseract-ocr@googlegroups.com
>> To unsubscribe from this group, send email to
>> tesseract-ocr+unsubscr...@googlegroups.com
>> 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 post to this group, send email to tesseract-ocr@googlegroups.com
> To unsubscribe from this group, send email to
> tesseract-ocr+unsubscr...@googlegroups.com
> 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 post to this group, send email to tesseract-ocr@googlegroups.com
To unsubscribe from this group, send email to
tesseract-ocr+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

Reply via email to