jacklicn / leptonica

Automatically exported from code.google.com/p/leptonica
0 stars 0 forks source link

error LNK2019: unresolved external symbol on all function call defined in 'allheaders.h' #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download and use the static libraries and include file
2. VS 2012 on Windows 8 Pro 64-Bit
3.

What is the expected output? What do you see instead?
I expect the application to compile but am getting LNK2019 errors on all 
functions defined in allheaders.h

What version of the product are you using? On what operating system?
Windows 8 Pro; Visual studios 2012; Leptonica 

Please provide any additional information below.

Original issue reported on code.google.com by adn...@gmail.com on 11 Jul 2013 at 5:27

GoogleCodeExporter commented 9 years ago
Leptonica version 1.68

Original comment by adn...@gmail.com on 11 Jul 2013 at 6:21

GoogleCodeExporter commented 9 years ago
What steps did you follow to make your VS2012 application? Have you read 
"Building and Linking with liblept using Microsoft Visual Studio 2008" at 
http://tpgit.github.io/UnOfficialLeptDocs/vs2008/index.html ? Even though 
that's specifically for VS2008 much of the same info should still (I hope) 
apply to VS2012.

Original comment by tomp2...@gmail.com on 11 Jul 2013 at 9:12

GoogleCodeExporter commented 9 years ago
I have followed the steps as indicated and if I use the pre-built static 
libraries I get the errors described above. When I try to build from the source 
code provided I get the following errors:

1>------ Build started: Project: liblept168, Configuration: DLL Debug Win32 
------
1>  ⸀⸀尀猀爀挀尀愀搀愀瀀琀洀愀瀀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀愀搀愀瀀琀洀愀瀀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀愀昀昀椀渀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀愀昀昀椀渀攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀愀昀昀椀渀攀挀漀洀瀀漀猀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀愀昀昀椀渀攀挀漀洀瀀漀猀攀⸀挀': No such 
file or directory
1>  ⸀⸀尀猀爀挀尀愀爀椀琀栀氀漀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀愀爀椀琀栀氀漀眀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀愀爀爀愀礀愀挀挀攀猀猀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀愀爀爀愀礀愀挀挀攀猀猀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀戀愀爀搀攀挀漀搀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀愀爀搀攀挀漀搀攀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀戀愀猀攀氀椀渀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀愀猀攀氀椀渀攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀戀戀甀昀昀攀爀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀戀甀昀昀攀爀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀戀椀氀椀渀攀愀爀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀椀氀椀渀攀愀爀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀戀椀渀愀爀椀稀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀椀渀愀爀椀稀攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀戀椀渀攀砀瀀愀渀搀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀椀渀攀砀瀀愀渀搀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀戀椀渀攀砀瀀愀渀搀氀漀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀椀渀攀砀瀀愀渀搀氀漀眀⸀挀': No such file 
or directory
1>  ⸀⸀尀猀爀挀尀戀椀渀爀攀搀甀挀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀椀渀爀攀搀甀挀攀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀戀椀渀爀攀搀甀挀攀氀漀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀椀渀爀攀搀甀挀攀氀漀眀⸀挀': No such file 
or directory
1>  ⸀⸀尀猀爀挀尀戀氀攀渀搀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀氀攀渀搀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀戀洀昀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀洀昀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀戀洀瀀椀漀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀洀瀀椀漀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀戀洀瀀椀漀猀琀甀戀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀洀瀀椀漀猀琀甀戀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀戀漀砀戀愀猀椀挀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀漀砀戀愀猀椀挀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀戀漀砀昀甀渀挀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀漀砀昀甀渀挀㄀⸀挀': No such file or directory
1>  Generating Code...
1>  Compiling...
1>  ⸀⸀尀猀爀挀尀戀漀砀昀甀渀挀㈀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀漀砀昀甀渀挀㈀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀戀漀砀昀甀渀挀㌀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀漀砀昀甀渀挀㌀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀戀礀琀攀愀爀爀愀礀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀戀礀琀攀愀爀爀愀礀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀挀挀戀漀爀搀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀挀戀漀爀搀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀挀挀琀栀椀渀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀挀琀栀椀渀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀挀氀愀猀猀愀瀀瀀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀氀愀猀猀愀瀀瀀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀挀漀氀漀爀挀漀渀琀攀渀琀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀氀漀爀挀漀渀琀攀渀琀⸀挀': No such file 
or directory
1>  ⸀⸀尀猀爀挀尀挀漀氀漀爀洀愀瀀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀氀漀爀洀愀瀀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀挀漀氀漀爀洀漀爀瀀栀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀氀漀爀洀漀爀瀀栀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀挀漀氀漀爀焀甀愀渀琀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀氀漀爀焀甀愀渀琀㄀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀挀漀氀漀爀焀甀愀渀琀㈀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀氀漀爀焀甀愀渀琀㈀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀挀漀氀漀爀猀攀最⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀氀漀爀猀攀最⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀挀漀氀漀爀猀瀀愀挀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀氀漀爀猀瀀愀挀攀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀挀漀洀瀀愀爀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀洀瀀愀爀攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀挀漀渀渀挀漀洀瀀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀渀渀挀漀洀瀀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀挀漀渀瘀攀爀琀昀椀氀攀猀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀渀瘀攀爀琀昀椀氀攀猀⸀挀': No such file 
or directory
1>  ⸀⸀尀猀爀挀尀挀漀渀瘀漀氀瘀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀渀瘀漀氀瘀攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀挀漀渀瘀漀氀瘀攀氀漀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀渀瘀漀氀瘀攀氀漀眀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀挀漀爀爀攀氀猀挀漀爀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀挀漀爀爀攀氀猀挀漀爀攀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀搀攀眀愀爀瀀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀搀攀眀愀爀瀀⸀挀': No such file or directory
1>  Generating Code...
1>  Compiling...
1>  ⸀⸀尀猀爀挀尀搀眀愀挀漀洀戀⸀㈀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀搀眀愀挀漀洀戀⸀㈀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀搀眀愀挀漀洀戀氀漀眀⸀㈀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀搀眀愀挀漀洀戀氀漀眀⸀㈀⸀挀': No such file 
or directory
1>  ⸀⸀尀猀爀挀尀攀搀最攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀攀搀最攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀攀渀栀愀渀挀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀攀渀栀愀渀挀攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀昀栀洀琀愀甀琀漀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀昀栀洀琀愀甀琀漀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀昀栀洀琀最攀渀⸀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀昀栀洀琀最攀渀⸀㄀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀昀栀洀琀最攀渀氀漀眀⸀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀昀栀洀琀最攀渀氀漀眀⸀㄀⸀挀': No such file 
or directory
1>  ⸀⸀尀猀爀挀尀昀椀渀搀椀琀愀氀椀挀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀昀椀渀搀椀琀愀氀椀挀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀昀氀椀瀀搀攀琀攀挀琀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀昀氀椀瀀搀攀琀攀挀琀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀昀氀椀瀀栀洀琀最攀渀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀昀氀椀瀀栀洀琀最攀渀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀昀洀漀爀瀀栀愀甀琀漀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀昀洀漀爀瀀栀愀甀琀漀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀昀洀漀爀瀀栀最攀渀⸀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀昀洀漀爀瀀栀最攀渀⸀㄀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀昀洀漀爀瀀栀最攀渀氀漀眀⸀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀昀洀漀爀瀀栀最攀渀氀漀眀⸀㄀⸀挀': No 
such file or directory
1>  ⸀⸀尀猀爀挀尀昀瀀椀砀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀昀瀀椀砀㄀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀昀瀀椀砀㈀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀昀瀀椀砀㈀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀最椀昀椀漀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀最椀昀椀漀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀最椀昀椀漀猀琀甀戀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀最椀昀椀漀猀琀甀戀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀最瀀氀漀琀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀最瀀氀漀琀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀最爀愀瀀栀椀挀猀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀最爀愀瀀栀椀挀猀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀最爀愀礀洀漀爀瀀栀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀最爀愀礀洀漀爀瀀栀⸀挀': No such file or 
directory
1>  Generating Code...
1>  Compiling...
1>  ⸀⸀尀猀爀挀尀最爀愀礀洀漀爀瀀栀氀漀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀最爀愀礀洀漀爀瀀栀氀漀眀⸀挀': No such file 
or directory
1>  ⸀⸀尀猀爀挀尀最爀愀礀焀甀愀渀琀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀最爀愀礀焀甀愀渀琀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀最爀愀礀焀甀愀渀琀氀漀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀最爀愀礀焀甀愀渀琀氀漀眀⸀挀': No such file 
or directory
1>  ⸀⸀尀猀爀挀尀栀攀愀瀀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀栀攀愀瀀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀樀戀挀氀愀猀猀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀樀戀挀氀愀猀猀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀樀瀀攀最椀漀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀樀瀀攀最椀漀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀樀瀀攀最椀漀猀琀甀戀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀樀瀀攀最椀漀猀琀甀戀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀欀攀爀渀攀氀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀欀攀爀渀攀氀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀氀攀瀀琀眀椀渀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀氀攀瀀琀眀椀渀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀氀椀戀瘀攀爀猀椀漀渀猀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀氀椀戀瘀攀爀猀椀漀渀猀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀氀椀猀琀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀氀椀猀琀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀洀愀稀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀洀愀稀攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀洀漀爀瀀栀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀洀漀爀瀀栀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀洀漀爀瀀栀愀瀀瀀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀洀漀爀瀀栀愀瀀瀀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀洀漀爀瀀栀搀眀愀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀洀漀爀瀀栀搀眀愀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀洀漀爀瀀栀猀攀焀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀洀漀爀瀀栀猀攀焀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀渀甀洀愀戀愀猀椀挀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀渀甀洀愀戀愀猀椀挀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀渀甀洀愀昀甀渀挀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀渀甀洀愀昀甀渀挀㄀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀渀甀洀愀昀甀渀挀㈀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀渀甀洀愀昀甀渀挀㈀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀愀最攀猀攀最⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀愀最攀猀攀最⸀挀': No such file or directory
1>  Generating Code...
1>  Compiling...
1>  ⸀⸀尀猀爀挀尀瀀愀椀渀琀挀洀愀瀀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀愀椀渀琀挀洀愀瀀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀愀爀猀攀瀀爀漀琀漀猀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀愀爀猀攀瀀爀漀琀漀猀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀愀爀琀椀琀椀漀渀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀愀爀琀椀琀椀漀渀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀搀昀椀漀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀搀昀椀漀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀搀昀椀漀猀琀甀戀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀搀昀椀漀猀琀甀戀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀㄀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀㈀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀㈀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀㌀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀㌀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀㐀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀㐀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀㔀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀㔀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀愀戀愀猀椀挀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀愀戀愀猀椀挀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀愀挀挀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀愀挀挀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀愀昀甀渀挀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀愀昀甀渀挀㄀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀愀昀甀渀挀㈀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀愀昀甀渀挀㈀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀愀氀氀漀挀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀愀氀氀漀挀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀愀爀椀琀栀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀愀爀椀琀栀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀挀漀洀瀀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀挀漀洀瀀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀挀漀渀瘀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀挀漀渀瘀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀椀砀琀椀氀椀渀最⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀椀砀琀椀氀椀渀最⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀渀最椀漀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀渀最椀漀⸀挀': No such file or directory
1>  Generating Code...
1>  Compiling...
1>  ⸀⸀尀猀爀挀尀瀀渀最椀漀猀琀甀戀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀渀最椀漀猀琀甀戀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀渀洀椀漀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀渀洀椀漀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀渀洀椀漀猀琀甀戀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀渀洀椀漀猀琀甀戀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀爀漀樀攀挀琀椀瘀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀爀漀樀攀挀琀椀瘀攀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀猀椀漀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀猀椀漀㄀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀猀椀漀㄀猀琀甀戀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀猀椀漀㄀猀琀甀戀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀猀椀漀㈀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀猀椀漀㈀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀猀椀漀㈀猀琀甀戀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀猀椀漀㈀猀琀甀戀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀瀀琀愀戀愀猀椀挀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀琀愀戀愀猀椀挀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀琀愀昀甀渀挀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀琀愀昀甀渀挀㄀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瀀琀爀愀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瀀琀爀愀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀焀甀愀搀琀爀攀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀焀甀愀搀琀爀攀攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀焀甀攀甀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀焀甀攀甀攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀爀愀渀欀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀愀渀欀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀爀攀愀搀戀愀爀挀漀搀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀攀愀搀戀愀爀挀漀搀攀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀爀攀愀搀昀椀氀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀攀愀搀昀椀氀攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀爀攀最甀琀椀氀猀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀攀最甀琀椀氀猀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀爀漀瀀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀漀瀀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀爀漀瀀椀瀀氀漀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀漀瀀椀瀀氀漀眀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀爀漀瀀氀漀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀漀瀀氀漀眀⸀挀': No such file or directory
1>  Generating Code...
1>  Compiling...
1>  ⸀⸀尀猀爀挀尀爀漀琀愀琀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀漀琀愀琀攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀爀漀琀愀琀攀愀洀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀漀琀愀琀攀愀洀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀爀漀琀愀琀攀愀洀氀漀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀漀琀愀琀攀愀洀氀漀眀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀爀漀琀愀琀攀漀爀琀栀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀漀琀愀琀攀漀爀琀栀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀爀漀琀愀琀攀漀爀琀栀氀漀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀漀琀愀琀攀漀爀琀栀氀漀眀⸀挀': No such 
file or directory
1>  ⸀⸀尀猀爀挀尀爀漀琀愀琀攀猀栀攀愀爀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀漀琀愀琀攀猀栀攀愀爀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀爀甀渀氀攀渀最琀栀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀爀甀渀氀攀渀最琀栀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀猀愀爀爀愀礀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀愀爀爀愀礀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀猀挀愀氀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀挀愀氀攀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀猀挀愀氀攀氀漀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀挀愀氀攀氀漀眀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀猀攀攀搀昀椀氀氀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀攀攀搀昀椀氀氀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀猀攀攀搀昀椀氀氀氀漀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀攀攀搀昀椀氀氀氀漀眀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀猀攀氀㄀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀攀氀㄀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀猀攀氀㈀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀攀氀㈀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀猀攀氀最攀渀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀攀氀最攀渀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀猀栀攀愀爀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀栀攀愀爀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀猀欀攀眀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀欀攀眀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀猀瀀椀砀椀漀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀瀀椀砀椀漀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀猀琀愀挀欀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀琀愀挀欀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀猀甀搀漀欀甀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀猀甀搀漀欀甀⸀挀': No such file or directory
1>  Generating Code...
1>  Compiling...
1>  ⸀⸀尀猀爀挀尀琀攀砀琀漀瀀猀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀琀攀砀琀漀瀀猀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀琀椀昀昀椀漀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀琀椀昀昀椀漀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀琀椀昀昀椀漀猀琀甀戀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀琀椀昀昀椀漀猀琀甀戀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀甀琀椀氀猀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀甀琀椀氀猀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀瘀椀攀眀昀椀氀攀猀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀瘀椀攀眀昀椀氀攀猀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀眀愀爀瀀攀爀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀眀愀爀瀀攀爀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀眀愀琀攀爀猀栀攀搀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀眀愀琀攀爀猀栀攀搀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀眀攀戀瀀椀漀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀眀攀戀瀀椀漀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀眀攀戀瀀椀漀猀琀甀戀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀眀攀戀瀀椀漀猀琀甀戀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀眀爀椀琀攀昀椀氀攀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀眀爀椀琀攀昀椀氀攀⸀挀': No such file or 
directory
1>  ⸀⸀尀猀爀挀尀稀氀椀戀洀攀洀⸀挀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀稀氀椀戀洀攀洀⸀挀': No such file or directory
1>  ⸀⸀尀猀爀挀尀稀氀椀戀洀攀洀猀琀甀戀⸀挀⸀
1>c1 : fatal error C1083: Cannot open source file: 
'⸀⸀尀猀爀挀尀稀氀椀戀洀攀洀猀琀甀戀⸀挀⸀': No such file 
or directory
1>  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Original comment by adn...@gmail.com on 12 Jul 2013 at 5:07

GoogleCodeExporter commented 9 years ago
Wow. I have no idea what you are doing :)

Maybe the best way forward is for you to first try Visual Studio 2008, since 
that is a known working solution. You can still get Visual C++ 2008 Express 
free at:

http://download.microsoft.com/download/E/8/E/E8EEB394-7F42-4963-A2D8-29559B73829
8/VS2008ExpressWithSP1ENUX1504728.iso

Original comment by tomp2...@gmail.com on 14 Jul 2013 at 5:45

GoogleCodeExporter commented 9 years ago
lol...Its not making sense to me either! I tried what you suggested and 
compiled the source using VS2008. I get the following errors when I build 
liblept168:

1>Creating library DLL Debug\liblept168d.lib and object DLL 
Debug\liblept168d.exp
1>affinecompose.obj : error LNK2019: unresolved external symbol 
_ptaConvertToBoxa referenced in function _boxaTranslate
1>affinecompose.obj : error LNK2019: unresolved external symbol 
_boxaConvertToPta referenced in function _boxaTranslate
1>pixafunc1.obj : error LNK2001: unresolved external symbol _boxaGetExtent
1>pixafunc2.obj : error LNK2001: unresolved external symbol _boxaGetExtent
1>boxbasic.obj : error LNK2019: unresolved external symbol _boxaGetExtent 
referenced in function _boxaaWriteStream
1>boxfunc3.obj : error LNK2001: unresolved external symbol _boxaGetExtent
1>partition.obj : error LNK2001: unresolved external symbol _boxaGetExtent
1>pixabasic.obj : error LNK2001: unresolved external symbol _boxaGetExtent
1>classapp.obj : error LNK2019: unresolved external symbol _boxaSelectBySize 
referenced in function _pixGetWordsInTextlines
1>jbclass.obj : error LNK2001: unresolved external symbol _boxaSelectBySize
1>colormap.obj : error LNK2019: unresolved external symbol 
_pixelShiftByComponent referenced in function _pixcmapShiftByComponent
1>pdfio.obj : error LNK2019: unresolved external symbol _l_dnaAddNumber 
referenced in function _generateFixedStringsPdf
1>utils.obj : error LNK2001: unresolved external symbol _l_dnaAddNumber
1>pdfio.obj : error LNK2019: unresolved external symbol _l_dnaGetIValue 
referenced in function _generateTrailerPdf
1>pdfio.obj : error LNK2019: unresolved external symbol _l_dnaGetCount 
referenced in function _generateTrailerPdf
1>utils.obj : error LNK2001: unresolved external symbol _l_dnaGetCount
1>pdfio.obj : error LNK2019: unresolved external symbol _l_dnaGetIArray 
referenced in function _generateOutputDataPdf
1>pdfio.obj : error LNK2019: unresolved external symbol _l_dnaMakeDelta 
referenced in function _ptraConcatenatePdfToData
1>pdfio.obj : error LNK2019: unresolved external symbol _l_dnaCreate referenced 
in function _ptraConcatenatePdfToData
1>utils.obj : error LNK2001: unresolved external symbol _l_dnaCreate
1>pdfio.obj : error LNK2019: unresolved external symbol _l_dnaDestroy 
referenced in function _ptraConcatenatePdfToData
1>utils.obj : error LNK2001: unresolved external symbol _l_dnaDestroy
1>pdfio.obj : error LNK2019: unresolved external symbol _l_dnaaGetDna 
referenced in function _ptraConcatenatePdfToData
1>pdfio.obj : error LNK2019: unresolved external symbol _l_dnaaDestroy 
referenced in function _ptraConcatenatePdfToData
1>pdfio.obj : error LNK2019: unresolved external symbol _l_dnaaAddDna 
referenced in function _ptraConcatenatePdfToData
1>pdfio.obj : error LNK2019: unresolved external symbol _l_dnaaCreate 
referenced in function _ptraConcatenatePdfToData
1>pdfio.obj : error LNK2019: unresolved external symbol _l_dnaEmpty referenced 
in function _parseTrailerPdf
1>pixafunc1.obj : error LNK2019: unresolved external symbol 
_boxaMakeSizeIndicator referenced in function _pixaSelectBySize
1>DLL Debug\liblept168d.dll : fatal error LNK1120: 18 unresolved externals

Any ideas what can be causing this? Any help will be appreciated! FYI. I am 
using the leptonica-1.69 sources.

Thanks in advance,

AK

Original comment by adn...@gmail.com on 15 Jul 2013 at 2:08

GoogleCodeExporter commented 9 years ago
Just a quick update. I used the leptonica-1.68 instead of the leptonica-1.69 
sources and everything seems to compile just fine in VS2008. What would you 
recommend I do in order to get it up and running to be used by an application 
developed in VS2012 on Win8Pro?

Thanks,

AK

Original comment by adn...@gmail.com on 15 Jul 2013 at 2:21

GoogleCodeExporter commented 9 years ago
OK. So I now have the Leptonica stuff working on a VS2008, win32 setup. I am 
able to manipulate, rotate by shear small tiff images. My issue now is the 
rotate by shear of larger tiff files (5080dpi X 20in x 20in) which is what I 
need to do. I keep getting pix_malloc fail for data and pixd not made errors. 
Is there anything that can be done for this?

Thanks,

AK

Original comment by adn...@gmail.com on 15 Jul 2013 at 6:07

GoogleCodeExporter commented 9 years ago
malloc is failing in pixCreateNoInit() because you're asking for an array that 
is too large.  You're asking for an array that is 100K pixels on a side, which 
is 1 trillion pixels!  The biggest image data array allowed in leptonica is 2 GB

Original comment by dbloomb...@google.com on 15 Jul 2013 at 8:30

GoogleCodeExporter commented 9 years ago
no, my mistake, it is 10 billion pixels.  You can make a 1 or 2 bpp image that 
large, but nothing with more depth.

Original comment by dbloomb...@google.com on 15 Jul 2013 at 8:34

GoogleCodeExporter commented 9 years ago
A 20in x 20in x 5080dpi 1-bit tiff image will require a buffer of size of about 
1.44GB so it should work, but it is not. Is there any way to increase the max 
buffer allowed in Leptonica?

The issue with the Chinese/Japanese character file names not found was resolved 
by manually fixing the leptonica.vcxproj file for VS2012 and it is now 
compiling for both DLL Release and DLL Debug, win32. I can provide details if 
required.

Original comment by adn...@gmail.com on 16 Jul 2013 at 2:40

GoogleCodeExporter commented 9 years ago
I agree that a 1 bit tiff of that size should not cause a malloc failure.  Just 
for sanity, please check the values of the args to pixCreateHeader(), which is 
called just before the malloc.

Original comment by dan.bloo...@gmail.com on 17 Jul 2013 at 4:31

GoogleCodeExporter commented 9 years ago
The values for the width and height and depth are: 101600, 101600, 1 
respectively. This amounts to 1.201GB memory required. pix_malloc is returning 
NULL with input values of 4 * 3175 (wpl) * 101600 (height). Any ideas why this 
might be happening?

Original comment by adn...@gmail.com on 17 Jul 2013 at 5:57

GoogleCodeExporter commented 9 years ago
malloc succeeds on linux (gnu runtime) with these parameters.  I don't know why 
it fails on windows.

Original comment by dbloomb...@google.com on 17 Jul 2013 at 11:52

GoogleCodeExporter commented 9 years ago
Hi. Thanks for your input. I am not sure why this is happening either. What I 
am doing now is building all the various projects (zlib128, libpng, libjpeg, 
libtiff and giflib) from source. I am doing so on a windows 8 x64 system using 
VS2012 and tools. I have managed to compile and test zlib128, libpng and 
libjpeg following the instructions provided on Leptonica. The issue now is that 
when I try to nmake libtiff, I get the following link errors:

   Creating library libtiff403-dll-mtdll-debug.lib and object libtiff403-dll-mtd
ll-debug.exp
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_std_error 
referenced in function _TIFFjpeg_create_compress
tif_ojpeg.obj : error LNK2001: unresolved external symbol _jpeg_std_error
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_CreateCompress 
referenced in function _TIFFjpeg_create_compress
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_CreateDecompress
referenced in function _TIFFjpeg_create_decompress
tif_ojpeg.obj : error LNK2001: unresolved external symbol _jpeg_CreateDecompress

tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_set_defaults 
referenced in function _TIFFjpeg_set_defaults
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_set_colorspace 
referenced in function _TIFFjpeg_set_colorspace
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_set_quality 
referenced in function _TIFFjpeg_set_quality
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_suppress_tables 
referenced in function _TIFFjpeg_suppress_tables
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_start_compress 
referenced in function _TIFFjpeg_start_compress
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_write_scanlines 
referenced in function _TIFFjpeg_write_scanlines
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_finish_compress 
referenced in function _TIFFjpeg_finish_compress
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_write_raw_data 
referenced in function _TIFFjpeg_write_raw_data
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_write_tables 
referenced in function _TIFFjpeg_write_tables
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_read_header 
referenced in function _TIFFjpeg_read_header
tif_ojpeg.obj : error LNK2001: unresolved external symbol _jpeg_read_header
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_start_decompress
referenced in function _TIFFjpeg_start_decompress
tif_ojpeg.obj : error LNK2001: unresolved external symbol _jpeg_start_decompress

tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_read_scanlines 
referenced in function _TIFFjpeg_read_scanlines
tif_ojpeg.obj : error LNK2001: unresolved external symbol _jpeg_read_scanlines
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_finish_decompress
 referenced in function _TIFFjpeg_finish_decompress
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_read_raw_data 
referenced in function _TIFFjpeg_read_raw_data
tif_ojpeg.obj : error LNK2001: unresolved external symbol _jpeg_read_raw_data
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_abort referenced
in function _TIFFjpeg_error_exit
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_destroy reference
d in function _TIFFjpeg_destroy
tif_ojpeg.obj : error LNK2001: unresolved external symbol _jpeg_destroy
tif_jpeg.obj : error LNK2019: unresolved external symbol _jpeg_resync_to_restart
 referenced in function _TIFFjpeg_data_src
tif_zip.obj : error LNK2019: unresolved external symbol _deflate referenced in 
function _ZIPEncode
tif_zip.obj : error LNK2019: unresolved external symbol _deflateEnd referenced 
in function _ZIPSetupDecode
tif_zip.obj : error LNK2019: unresolved external symbol _inflate referenced in 
function _ZIPDecode
tif_zip.obj : error LNK2019: unresolved external symbol _inflateEnd referenced 
in function _ZIPSetupEncode
tif_zip.obj : error LNK2019: unresolved external symbol _deflateReset referenced
 in function _ZIPPreEncode
tif_zip.obj : error LNK2019: unresolved external symbol _deflateParams reference
d in function _ZIPVSetField
tif_zip.obj : error LNK2019: unresolved external symbol _inflateSync referenced
in function _ZIPDecode
tif_zip.obj : error LNK2019: unresolved external symbol _inflateReset referenced
 in function _ZIPPreDecode
tif_zip.obj : error LNK2019: unresolved external symbol _deflateInit_ referenced
 in function _ZIPSetupEncode
tif_zip.obj : error LNK2019: unresolved external symbol _inflateInit_ referenced
 in function _ZIPSetupDecode
libtiff403-dll-mtdll-debug.dll : fatal error LNK1120: 30 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\link.EXE"' : return code '0x460'
Stop.

c:\Leptonica\libtiff-4.0.3\libtiff>

Any ideas why this might be happening? Thanks.

Original comment by adn...@gmail.com on 22 Jul 2013 at 3:50

GoogleCodeExporter commented 9 years ago
Did some digging into this issue and it seems that the libtiff does not like 
the x64 compilation of the jpeg and zlib. Are there any instructions or 
suggestions on how to compile the libtiff in x64? Thanks.

Original comment by adn...@gmail.com on 23 Jul 2013 at 4:56

GoogleCodeExporter commented 9 years ago
OK. I got everything working in windows 8 pro x64 in VS2012! I had to run 
vcvars64.bat for the nmake for libtiff. I am now able to call liblept functions 
from my application. Thank you all for your time and help. If anyone needs any 
info regarding what I did. I will be more than happy to help out. Thanks.

Original comment by adn...@gmail.com on 23 Jul 2013 at 6:44

GoogleCodeExporter commented 9 years ago
great -- glad you got it working, and I'm sorry it was so much trouble.

TomP may ask you for a short writeup of the extra steps you found necessary to 
get this running under VS2012.

And thanks for your help debugging Windows  :-)

Original comment by dan.bloo...@gmail.com on 23 Jul 2013 at 8:32

GoogleCodeExporter commented 9 years ago
It was a good learning experience. I will be more than happy to provide TomP 
any information required. Please let me know what you need.

1 thing I forgot to mention is that now on this system (win8Prox64-VS2012x64) I 
am not getting the malloc issue from before. I am able to process (rotation by 
shear) 20in x 24in x 5080dpi TIFF images without any issues.

Original comment by adn...@gmail.com on 23 Jul 2013 at 11:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am not sure if this is the correct place to post this but here goes:

The final goal for me is to use a GPU (Nvidia K10) to speed up the Leptonica 
image processing using the CUDA platform. I am particularly interested in doing 
this for the rotation by shear on a large format TIFF files. I think porting 
the code for shearing to CUDA would be one way.

Has any thought or work been done on this? Any ideas or suggestions will be 
appreciated.

Thanks.

Original comment by adn...@gmail.com on 24 Jul 2013 at 2:49

GoogleCodeExporter commented 9 years ago
This has been brought up on several occasions.  I have no plans to pursue it.  
A straight-forward application might be to pixConvolve() or fpixConvolve(), 
which are relatively slow on leptonica and, as FIR filters, should be easily 
parallelized.  My guess is that pixRotate() would be tricky.  There exist C --> 
CUDA translators, and it would be interesting to find out what kind of speedup 
is easily obtainable using a translator for these functions and some NVIDIA 
hardware.

Original comment by dan.bloo...@gmail.com on 24 Jul 2013 at 8:49

GoogleCodeExporter commented 9 years ago
I agree with your analysis and do have access to such a translator. I will 
pursue this and let you know of any updates and/or progress. I hope it is OK if 
I ask questions here regarding the current Leptonica source code. Thanks again.

Original comment by adn...@gmail.com on 24 Jul 2013 at 9:49

GoogleCodeExporter commented 9 years ago
Ooops. Sorry for not responding earlier. I flagged this issue for email 
notification but then never noticed that gmail was sending all of them to my 
spam folder :(. I just assumed that something from google codesite would never 
be spam. Live and learn. I just happened to wonder today what ever happened 
with this issue and manually looked for it again.

Anyway, glad you got everything sorted out. Some comments:

Your initial root problem was because you were trying to use leptonica v1.69 
with the v1.68 solution. In hindsight, I'm not surprised that you got all those 
unresolved symbols since you were attempting to link to the wrong library. 
v1.69 has never been "officially" supported on Windows as it is a linux-only 
release.

Memory issues. The provided VS2008 Solution is for creating *32-bit* binaries. 
Even if you are running on Windows 64-bit you still can only access a 32-bit 
address space. And while I forget the exact details, I believe even then you 
only are able to get 1/2 of 3GB (Windows takes up 1GB and then uses half the 
address space for system memory --- or something like that). In any case you 
empirically determined this yourself.

So the solution, as you eventually discovered, is that you have to rebuild 
*everything* as 64-bit binaries, including all the prerequisite image 
libraries. I've always knew this was possible (and probably not too difficult), 
but have never tried to do it myself. Thanks for confirming this belief :)

I've heard over on the tesseract mailing list unconfirmed reports (at least by 
me) that the free Express versions of Visual Studio don't come with 64-bit 
compilers. This might be a problem for some people, and is one argument for 
providing both 32-bit and 64-bit prebuilt binaries (ugh!).

VS2012. I haven't done this myself, but I assumed that it would be relatively 
simple to use the VS2008 Solution with VS2012. Certainly moving from VS2008 to 
VS2010 isn't that hard.

libtiff. The v1.68 documentation discusses bulding and using libtiff 3.9.4. 
There is also libtiff v4.x which supports "bigtiff" [1], that is images that 
are bigger than (4GB or even only 2GB depending on the implementation). You may 
run into this limit also.

As far as using CUDA is concerned I wouldn't initially bother with Leptonica. 
Instead see the CUDA Imaging Samples [2], StackOverflow [3], or even the PyCUDA 
example [4]. Googling gives all sorts of hits for "cuda example rotating image".

[1] http://www.awaresystems.be/imaging/tiff/faq.html#q8

[2] http://docs.nvidia.com/cuda/cuda-samples/index.html#imaging

[3] http://stackoverflow.com/questions/9833316/cuda-image-rotation

[4] http://wiki.tiker.net/PyCuda/Examples/Rotate

Original comment by tomp2...@gmail.com on 14 Aug 2013 at 2:11

GoogleCodeExporter commented 9 years ago
Thank you very much for the detailed response. No worries. It happens :)

Over all the Leptonica library is great for image processing. Its a job well 
done, so thank you for that.

Our requirements is, as you may have guessed, large format TIFF image rotation 
in real time. The rotation by shear is what we are after and that is what I am 
trying to implement in CUDA. Also Leptonica allows for easy TIFF image data 
handling.

I have looked at the links you gave, which CUDA Imaging Sample[2] in particular 
do you think will be a good place to start? The StackOverFlow [3] I am familiar 
with but we feel that using trig functions will greatly effect the speed of the 
rotation hence the shear method.

TIFF handling has to be done by us and CUDA does not seem to offer such support 
unless I am wrong.

Any further advise would be greatly appreciated.

Original comment by adn...@gmail.com on 14 Aug 2013 at 2:45

GoogleCodeExporter commented 9 years ago
Re-reading my comment I see I came across as more authoritative than I 
intended. I mentioned the CUDA samples mainly in reference to Dan's comments 
about pixConvolve since there appear to be many examples of doing that using 
CUDA.

As far as the stackoverflow link, I suggest just trying it first and seeing how 
fast the "slow"/easy method is. Maybe it will be fast enough?

Presumably, thoroughly reading and understanding nVidia's Performance 
Guidelines [1] will help? In particular, "5.4. Maximize Instruction Throughput" 
[2] and "D.2. Intrinsic Functions" [3] talk about your valid concerns with trig 
functions.

Also I might mention that the various rotation methods can introduce more or 
less artifacts. In some cases it is better to be accurate rather than fast. But 
I guess since you have already decided on rotation by shear that this does not 
apply in your case?

Finally, have you looked into using nVidia's Performance Primitives [4]? It 
already has a rotate and lots of other image processing operations. Since I 
gather that rotation by shear is implemented via rasterops, maybe it would be a 
simple translation to use NPP's functions instead?

[1] 
http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#performance-guid
elines

[2] 
http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#maximize-instruc
tion-throughput

[3] 
http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#intrinsic-functi
ons

[4] https://developer.nvidia.com/npp

Original comment by tomp2...@gmail.com on 15 Aug 2013 at 12:57

GoogleCodeExporter commented 9 years ago
Thank you again for your input. I have gone through the various documentations 
and done the calculations regarding the trig functions and they do add 
substantial delays for our application.

Artifacts are definitely an issue and I agree that accuracy is preferred to 
speed. The rotation by shear in Leptonica gives very good and usable results. I 
have checked and tested the output rotated files.

I have given the NPP rotation functions a try but there is a limitation on the 
size of the TIFF files. It will not accept the file sizes we need to use.

I am quite convinced that implementing your rotation by shear method in CUDA is 
probably the right way to go, unless proven wrong :)

The issue there for me right now is figuring out exactly what parts to port to 
CUDA in order to get it at least working; optimization can come later.

Original comment by adn...@gmail.com on 15 Aug 2013 at 2:29

GoogleCodeExporter commented 9 years ago
Thanks to comments in issue #93, I've been informed that the original problem 
is due to the bug mentioned at [1]. Apparently converting from a VS2008 
solution to VS2012 causes it if certain elements in the .vcxproj xml file 
contain a newline in them. In this case you need to remove the newline from all 
<Command> elements.

[1] http://connect.microsoft.com/VisualStudio/feedback/details/774527

Original comment by tomp2...@gmail.com on 6 Feb 2014 at 3:02