Changed the Leptonica library filename from leptonlib to liblept to match the name used on other platforms.
Included the version number in all generated library names. For example, leptonlib-static-mtdll-debug.lib is now called liblept168-static-mtdll-debug.lib.
Added two new batch files to ease the transition from the old library names and also create simplified versions. vs2008\create_unnumbered_hardlinks.bat creates NTFS “hardlinks” to the new file names. vs2008\remove_unnumbered_hardlinks.bat removes these links.
For example, after running create_unnumbered_hardlinks.bat, liblept168-static-mtdll-debug.lib can be referred to as:
leptonlib-static-mtdll-debug.lib
liblept168d-static.lib
libleptd-static.lib
and libtiff394-static-mtdll-debug.lib can be referred to as:
libtiff394-static-mtdll-debug.lib
libtiff394d.lib
libtiffd.lib
See About version numbers in library filenames for more details.
Added references to the new vs2008\leptonica_versionnumbers.vsprops Property Sheet to all Leptonica Visual Studio Projects. It defines version number “user macros”. If you copy this file to a known location, refer to it in your own projects, and use the new *_VERSION macros, you will be isolated from worrying about version number changes in library filenames.
See About version numbers in library filenames for more details.
Renamed the Solution file to leptonica.sln and the Project file to leptonica.vcproj. As a result you’ll have to replace any old CreateLPP.dll in your Visual Studio 2008 Addins folder (normally C:\My Documents\Visual Studio 2008\Addins\) with the new one in BuildFolder\leptonica-1.68\vs2008 to get the Create Leptonica prog Project AddIn to work again.
Removed unneeded Debug and Release Configurations from leptonica.sln.
Added the following Post-Build Event to the ioformats_reg Project:
if exist "$(SolutionDir)$(OutDir)\$(TargetFileName)" del "$(SolutionDir)$(OutDir)\$(TargetFileName)"
fsutil hardlink create "$(SolutionDir)$(OutDir)\$(TargetFileName)" "$(TargetPath)"
This creates a NTFS “hardlink” to ioformats_reg.exe in the vs2008$(OutDir) folder so that the alltests_reg program (which needs to be able to execute all the *_reg programs) can find it. Be sure to also set alltests_reg Project’s Configuration Properties | Debugging | Environment to:
set PATH=..\..\lib;..\vs2008\$(OutDir);%PATH%
Added a Version resource to DLL releases. A Version tab now displays in the liblept.dll Properties dialog.
Fixed getLeptonicaVersion() output for LIB releases. (It said DLL instead of LIB.)
Set the the /Version:1.68 Linker option for DLL releases.
Removed definition of snprintf=_snprintf from all projects. (snprintf is changed to _snprintf_s in environ.h.)
Added the following files to the liblept-1.68 Project:
bytearray.c
colorspace.c
libversions.c
pdfio.c
pdfiostub.c
quadtree.c
Added the following files to prog_files Solution Folder:
byteatest.c
colormask_reg.c
convertfilestopdf.c
convertsegfilestopdf.c
pdfiotest.c
pdfseg_reg.c
pngio_reg.c
quadtreetest.c
translate_reg.c
yuvtest.c
Removed the following files from prog_files Solution Folder:
dwalinear.3.c
dwalinearlow.3.c
rotate_reg.c
Added descriptions of the following files to srcs.csv file:
bytearray.c
colorspace.c
libversions.c
pdfio.c
pdfiostub.c
quadtree.c
Added descriptions of the following files to progs.csv file:
byteatest.c
colormask_reg.c
convertfilestopdf.c
convertsegfilestopdf.c
pdfiotest.c
pdfseg_reg.c
pngio_reg.c
quadtreetest.c
translate_reg.c
yuvtest.c
Removed descriptions of the following files from progs.csv file:
rotate_reg.c
Updated to jpeg-8c and added a section on testing it to Building libjpeg.
Fixed tiff-3.9.4 nmake.opt so the generated DLL name is now .dll instead of .lib. Also fixed the import library name and handled DEBUG correctly for DLL builds.
Updated Visual Studio 2010 compatibility to take into account the new lept_free(), lept_fopen(), and lept_fclose() functions.
The webp image format is not supported under Visual Studio 2008 since libwebp doesn’t support building with Visual C++.
Added the following files to the leptonlib-1.67 Project:
convertfiles.c
sudoku.c
sudoku.h
webpio.c
webpiostub.c
Added the following files to prog_files Solution Folder:
graymorph1_reg.c
graymorph2_reg.c
projection_reg.c
sudokutest.c
writemtiff.c
Removed the following files from prog_files Solution Folder:
graymorph_reg.c
Added descriptions of the following files to srcs.csv file:
convertfiles.c
endianness.h
sudoku.c
sudoku.h
webpio.c
webpiostub.c
Removed descriptions of the following files from progs.csv file:
graymorph_reg.c
Added descriptions of the following files to progs.csv file:
graymorph1_reg.c
graymorph2_reg.c
projection_reg.c
sudokutest.c
writemtiff.c
Updated VS2008notes:
Added a Quickstart section.
Reorganized now that it’s possible to use the liblept binaries for Windows zip file instead of having to build all the libraries.
Updated build instructions for libtiff 3.9.4, libjpeg 8b, libpng 1.4.3, and zlib 1.2.5.
Added information on Visual Studio 2010 compatibility.
Removed definitions of COMPILER_MSVC=1 and USE_PSTDINT from all projects.
Changed the leptonlib-1.66 Project to be more compatible with Visual Studio 2010.
For Lib Debug and Lib Release configurations reset linker and librarian Output File property to default to avoid VC++ 2010 problems.
Removed the conditional Custom Build Step and added an unconditional Post-Build Event to avoid VC++ 2010 bug where setting Outputs causes the linker to be invoked when building leptonlib. See VC++ in VS2010 fails if there is a command to copy lib file in ‘Custom Build Step’ for details.
Added the following files to the leptonlib-1.66 Project:
dewarp.c
dewarp.h
leptwin.c
leptwin.h
pix5.c
ptabasic.c
ptafunc1.c
spixio.c
Added the following files to prog_files Solution Folder:
alphaxform_reg.c
convolve_reg.c
dewarp_reg.c
dewarptest.c
findpattern_reg.c
livre_adapt.c
livre_hmt.c
livre_makefigs.c
livre_orient.c
livre_pageseg.c
livre_seedgen.c
livre_tophat.c
otsutest1.c
otsutest2.c
overlap_reg.c
Removed the following files from prog_files Solution Folder:
pagesegtest3.c
Added descriptions of the following files to srcs.csv file:
dewarp.c
dewarp.h
leptwin.c
leptwin.h
pix5.c
ptabasic.c
ptafunc1.c
spixio.c
Removed descriptions of the following files from progs.csv file:
otsutest.c
pagesegtest3.c
Added descriptions of the following files to progs.csv file:
alphaxform_reg.c
convolve_reg.c
dewarp_reg.c
dewarptest.c
findpattern_reg.c
livre_adapt.c
livre_hmt.c
livre_makefigs.c
livre_orient.c
livre_pageseg.c
livre_seedgen.c
livre_tophat.c
otsutest1.c
otsutest2.c
overlap_reg.c
Added the following files to the leptonlib-1.65 Project:
gifio.c
regutils.c
regutils.h
Added the following files to prog_files Solution Folder:
alltests_reg.c
alphaclean_reg.c
dwalinear.3.c
dwalineargen.c
dwalinearlow.3.c
maze_reg.c
pixa1_reg.c
pixa2_reg.c
psio_reg.c
rankbin_reg.c
rankhisto_reg.c
shear2_reg.c
warpertest.c
Removed the following files from prog_files Solution Folder:
affinetest.c
binmazetest.c
graymazetest.c
pixa_reg.c
plotprog.c
Added descriptions of the following files to srcs.csv file:
gifio.c
regutils.c
regutils.h
Added descriptions of the following files to progs.csv file:
alltests_reg.c
alphaclean_reg.c
dwalinear.3.c
dwalineargen.c
dwalinearlow.3.c
maze_reg.c
pixa1_reg.c
pixa2_reg.c
psio_reg.c
rankbin_reg.c
rankhisto_reg.c
shear2_reg.c
warpertest.c
Added CreateLeptonicaProgProjects.AddIn, CreateLeptonicaProgProjects.zip, and CreateLPP.dll to vs2008 directory. Implements VS2008 add-in to automatically create Project for currently selected prog/ file(s).
Added DLL Debug and DLL Release build configurations.
Updated VS2008notes:
Converted documentation over to ReStructured Text. Sphinx is used to generate the HTML files.
The vs2008\ folder is no longer part of standard Leptonica releases.
Explained the use of the new CreateLeptonicaProgProjects AddIn.
Updated instructions to the latest versions of libjpeg, libpng, and zlib.
Added enabling giflib support section.
Initial Release.