Add OCR build support

Adds OCR build support by creating two new build configs (one debug, one
release) and some instructions about what VS expects on those configs.
This commit is contained in:
canihavesomecoffee 2016-06-08 02:25:13 +02:00
parent 48878185de
commit 04be7be06b
5 changed files with 114 additions and 747 deletions

12
.gitignore vendored
View File

@ -9,8 +9,8 @@ CVS
*.o
linux/ccextractor
linux/depend
windows/debug/**
windows/release/**
windows/Debug/**
windows/Release/**
build/
####
@ -24,4 +24,10 @@ build/
####
# Ignore the header file that is updated upon build
src/lib_ccx/compile_info.h
src/lib_ccx/compile_info.h
#### Ignore windows OCR libraries and folders
windows/libs/leptonica/**
windows/libs/tesseract/**
windows/Release-OCR/**
windows/Debug-OCR/**

View File

@ -8,13 +8,19 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug-OCR|Win32 = Debug-OCR|Win32
Release|Win32 = Release|Win32
Release-OCR|Win32 = Release-OCR|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0F0063C4-BCBC-4379-A6D5-84A5669C940A}.Debug|Win32.ActiveCfg = Debug|Win32
{0F0063C4-BCBC-4379-A6D5-84A5669C940A}.Debug|Win32.Build.0 = Debug|Win32
{0F0063C4-BCBC-4379-A6D5-84A5669C940A}.Debug-OCR|Win32.ActiveCfg = Debug-OCR|Win32
{0F0063C4-BCBC-4379-A6D5-84A5669C940A}.Debug-OCR|Win32.Build.0 = Debug-OCR|Win32
{0F0063C4-BCBC-4379-A6D5-84A5669C940A}.Release|Win32.ActiveCfg = Release|Win32
{0F0063C4-BCBC-4379-A6D5-84A5669C940A}.Release|Win32.Build.0 = Release|Win32
{0F0063C4-BCBC-4379-A6D5-84A5669C940A}.Release-OCR|Win32.ActiveCfg = Release-OCR|Win32
{0F0063C4-BCBC-4379-A6D5-84A5669C940A}.Release-OCR|Win32.Build.0 = Release-OCR|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -1,744 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="ccextractor"
ProjectGUID="{0F0063C4-BCBC-4379-A6D5-84A5669C940A}"
RootNamespace="ccextractor"
Keyword="Win32Proj"
TargetFrameworkVersion="0"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="../src/gpacmp4;../src/libpng;../src/zlib"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_FILE_OFFSET_BITS=64"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="WS2_32.Lib"
ShowProgress="0"
LinkIncremental="2"
AdditionalLibraryDirectories=""
GenerateDebugInformation="true"
SubSystem="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="../src/gpacmp4;../src/libpng;../src/zlib"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_FILE_OFFSET_BITS=64"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="WS2_32.Lib"
LinkIncremental="1"
AdditionalLibraryDirectories=""
GenerateDebugInformation="true"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath="..\src\608.h"
>
</File>
<File
RelativePath="..\src\608_spupng.h"
>
</File>
<File
RelativePath="..\src\708.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\internal\avilib.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\avparse.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\base_coding.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\bitstream.h"
>
</File>
<File
RelativePath="..\src\bitstream.h"
>
</File>
<File
RelativePath="..\src\ccextractor.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\configuration.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\constants.h"
>
</File>
<File
RelativePath="..\src\zlib\crc32.h"
>
</File>
<File
RelativePath="..\src\zlib\deflate.h"
>
</File>
<File
RelativePath="..\src\disable_warnings.h"
>
</File>
<File
RelativePath="..\src\zlib\gzguts.h"
>
</File>
<File
RelativePath="..\src\hamming.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\ietf.h"
>
</File>
<File
RelativePath="..\src\zlib\inffast.h"
>
</File>
<File
RelativePath="..\src\zlib\inffixed.h"
>
</File>
<File
RelativePath="..\src\zlib\inflate.h"
>
</File>
<File
RelativePath="..\src\zlib\inftrees.h"
>
</File>
<File
RelativePath="..\src\inttypes.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\isomedia.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\internal\isomedia_dev.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\list.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\math.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\internal\media_dev.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\media_tools.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\mpeg4_odf.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\network.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\internal\odf_dev.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\internal\odf_parse_common.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\internal\ogg.h"
>
</File>
<File
RelativePath="..\src\libpng\png.h"
>
</File>
<File
RelativePath="..\src\libpng\pngconf.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\setup.h"
>
</File>
<File
RelativePath="..\src\stdint.h"
>
</File>
<File
RelativePath="..\src\stdintmsc.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\sync_layer.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\targetver.h"
>
</File>
<File
RelativePath="..\src\teletext.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\tools.h"
>
</File>
<File
RelativePath="..\src\zlib\trees.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\utf.h"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac\version.h"
>
</File>
<File
RelativePath="..\src\zlib\zconf.h"
>
</File>
<File
RelativePath="..\src\zlib\zlib.h"
>
</File>
<File
RelativePath="..\src\zlib\zutil.h"
>
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath="..\src\608.cpp"
>
</File>
<File
RelativePath="..\src\608_helpers.cpp"
>
</File>
<File
RelativePath="..\src\608_sami.cpp"
>
</File>
<File
RelativePath="..\src\608_smptett.cpp"
>
</File>
<File
RelativePath="..\src\608_spupng.cpp"
>
</File>
<File
RelativePath="..\src\608_srt.cpp"
>
</File>
<File
RelativePath="..\src\708.cpp"
>
</File>
<File
RelativePath="..\src\708_encoding.cpp"
>
</File>
<File
RelativePath="..\src\activity.cpp"
>
</File>
<File
RelativePath="..\src\zlib\adler32.c"
>
</File>
<File
RelativePath="..\src\asf_functions.cpp"
>
</File>
<File
RelativePath="..\src\gpacmp4\av_parsers.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\avc_ext.c"
>
</File>
<File
RelativePath="..\src\avc_functions.cpp"
>
</File>
<File
RelativePath="..\src\gpacmp4\avilib.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\base_encoding.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\bitstream.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\box_code_3gpp.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\box_code_apple.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\box_code_base.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\box_code_isma.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\box_code_meta.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\box_funcs.c"
>
</File>
<File
RelativePath="..\src\cc_bitstream.cpp"
>
</File>
<File
RelativePath="..\src\cc_decoders_common.cpp"
>
</File>
<File
RelativePath="..\src\ccextractor.cpp"
>
</File>
<File
RelativePath="..\src\constants.cpp"
>
</File>
<File
RelativePath="..\src\zlib\crc32.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\data_map.c"
>
</File>
<File
RelativePath="..\src\zlib\deflate.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\desc_private.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\descriptors.c"
>
</File>
<File
RelativePath="..\src\encoding.cpp"
>
</File>
<File
RelativePath="..\src\gpacmp4\error.c"
>
</File>
<File
RelativePath="..\src\es_functions.cpp"
>
</File>
<File
RelativePath="..\src\es_userdata.cpp"
>
</File>
<File
RelativePath="..\src\file_functions.cpp"
>
</File>
<File
RelativePath="..\src\general_loop.cpp"
>
</File>
<File
RelativePath="..\src\gpacmp4\gpac_ogg.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\hinting.c"
>
</File>
<File
RelativePath="..\src\zlib\inffast.c"
>
</File>
<File
RelativePath="..\src\zlib\inflate.c"
>
</File>
<File
RelativePath="..\src\zlib\inftrees.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\ipmpx_code.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\ipmpx_parse.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\isom_intern.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\isom_read.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\isom_store.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\isom_write.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\list.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\media.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\media_odf.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\meta.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\movie_fragments.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\mp4.cpp"
>
</File>
<File
RelativePath="..\src\myth.cpp"
>
</File>
<File
RelativePath="..\src\gpacmp4\odf_code.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\odf_codec.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\odf_command.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\os_divers.c"
>
</File>
<File
RelativePath="..\src\output.cpp"
>
</File>
<File
RelativePath="..\src\params.cpp"
>
</File>
<File
RelativePath="..\src\params_dump.cpp"
>
</File>
<File
RelativePath="..\src\libpng\png.c"
>
</File>
<File
RelativePath="..\src\libpng\pngerror.c"
>
</File>
<File
RelativePath="..\src\libpng\pngmem.c"
>
</File>
<File
RelativePath="..\src\libpng\pngset.c"
>
</File>
<File
RelativePath="..\src\libpng\pngtrans.c"
>
</File>
<File
RelativePath="..\src\libpng\pngwio.c"
>
</File>
<File
RelativePath="..\src\libpng\pngwrite.c"
>
</File>
<File
RelativePath="..\src\libpng\pngwtran.c"
>
</File>
<File
RelativePath="..\src\libpng\pngwutil.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\qos.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\sample_descs.c"
>
</File>
<File
RelativePath="..\src\sequencing.cpp"
>
</File>
<File
RelativePath="..\src\gpacmp4\slc.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\stbl_read.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\stbl_write.c"
>
</File>
<File
RelativePath="..\src\stream_functions.cpp"
>
</File>
<File
RelativePath="..\src\telxcc.cpp"
>
</File>
<File
RelativePath="..\src\timing.cpp"
>
</File>
<File
RelativePath="..\src\gpacmp4\track.c"
>
</File>
<File
RelativePath="..\src\zlib\trees.c"
>
</File>
<File
RelativePath="..\src\ts_functions.cpp"
>
</File>
<File
RelativePath="..\src\gpacmp4\tx3g.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\url.c"
>
</File>
<File
RelativePath="..\src\gpacmp4\utf.c"
>
</File>
<File
RelativePath="..\src\utility.cpp"
>
</File>
<File
RelativePath="..\src\xds.cpp"
>
</File>
<File
RelativePath="..\src\zlib\zutil.c"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View File

@ -1,10 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug-OCR|Win32">
<Configuration>Debug-OCR</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release-OCR|Win32">
<Configuration>Release-OCR</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
@ -232,6 +240,14 @@
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-OCR|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-OCR|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
@ -241,6 +257,12 @@
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-OCR|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-OCR|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>12.0.21005.1</_ProjectFileVersion>
@ -251,6 +273,22 @@
<LinkIncremental>true</LinkIncremental>
<TargetName>ccextractorwin</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-OCR|Win32'">
<OutDir>Debug-OCR\</OutDir>
<IntDir>Debug-OCR\</IntDir>
<LinkIncremental>true</LinkIncremental>
<TargetName>ccextractorwin</TargetName>
<IncludePath>$(ProjectDir)libs\tesseract\include\tesseract;$(ProjectDir)libs\leptonica\include\leptonica;$(IncludePath)</IncludePath>
<LibraryPath>$(ProjectDir)libs\tesseract\lib;$(ProjectDir)libs\leptonica\lib;$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-OCR|Win32'">
<OutDir>Release-OCR\</OutDir>
<IntDir>Release-OCR\</IntDir>
<LinkIncremental>false</LinkIncremental>
<TargetName>ccextractorwin</TargetName>
<IncludePath>$(ProjectDir)libs\tesseract\include\tesseract;$(ProjectDir)libs\leptonica\include\leptonica;$(IncludePath)</IncludePath>
<LibraryPath>$(ProjectDir)libs\tesseract\lib;$(ProjectDir)libs\leptonica\lib;$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>Release\</OutDir>
<IntDir>Release\</IntDir>
@ -277,6 +315,46 @@
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-OCR|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>../src/win_spec_incld;../src/gpacmp4;../src/libpng;../src/zlib;../src;../src/lib_ccx;../src/zvbi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>ENABLE_OCR;WIN32;_DEBUG;_CONSOLE;_FILE_OFFSET_BITS=64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalDependencies>WS2_32.Lib;libtesseract302.lib;liblept168.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ShowProgress>NotSet</ShowProgress>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-OCR|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>../src/win_spec_incld;../src/gpacmp4;../src/libpng;../src/zlib;../src;../src/lib_ccx;../src/zvbi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>ENABLE_OCR;WIN32;NDEBUG;_CONSOLE;_FILE_OFFSET_BITS=64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<PrecompiledHeader/>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalDependencies>WS2_32.Lib;libtesseract302.lib;liblept168.lib;%(AdditionalDependencies)</AdditionalDependencies>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>../src/win_spec_incld;../src/lib_ccx;../src/lib_hash;../src/gpacmp4;../src/libpng;../src/zlib;../src/zvbi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>

View File

@ -0,0 +1,21 @@
In order to compile CCExtractor with OCR support (the (Release|Debug)-OCR configurations),
we need the header files and .lib files for two libraries: Tesseract and Leptonica.
The project expects the following directory structure:
leptonica
-> include
* library header files which leptonica depends on (gif_lib, zlib, png, ...)
-> leptonica
* leptonica headers (most importantly allheaders.h)
-> lib
* the .lib & .dll generated by compiling Leptonica
tesseract
-> include
-> tesseract
* tesseract headers (most importantly capi.h)
-> lib
* the .lib & .dll generated by compiling Tesseract
Currently CCExtractor makes use of liblept168 (Leptonica 1.68) and libtesseract302 (Tesseract 3.02).