Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 16767 → Rev 16768

/trunk/Scribus/BUILDING_win32_msvc.txt
13,7 → 13,7
- Microsoft Visual Studio 2008 or Visual C++ Express Edition 2008
- A recent Qt (version >= 4.6) release built with Visual Studio 2008
- Cairo sources from cairographics.org (version >= 1.8.0)
- Pixman sources from cairographics.org (version = 0.12.0)
- Pixman sources from cairographics.org (version >= 0.18.0)
- Boost from www.boost.org (version >= 1.35.0)
- Libxml2 win32 binaries from the Libxml project
- Libjpeg win32 libs and binaries from the GnuWin32 project
20,7 → 20,9
- Libtiff win32 libs and binaries from the GnuWin32 project
- Freetype sources from freetype.org (version >= 2.4.0)
- LittleCMS sources from www.littlecms.com (version >= 2.1)
- PoDoFo 0.8.x (and ONLY 0.8.x) sources from podofo.sourceforge.net
- PoDoFo sources (version >= 0.8.0) from podofo.sourceforge.net
- Poppler sources (version >= 0.17.1) from poppler.freedesktop.org
- Poppler data (version >= 0.4.4) from poppler.freedesktop.org
- A Python 2.7 Windows binary build.
For debug builds, you'll need a release that contains the python27_d.dll .
 
67,6 → 69,9
 
Adjust SCRIBUS_SRC_PATH, SCRIBUS_BUILD_ROOT and SCRIBUS_INSTALL_PATH as needed and run batch script.
 
Download poppler data package on poppler.freedesktop.org. Copy content of archive
in %SCRIBUS_INSTALL_PATH%\share\poppler.
 
Now copy the DLLs from the zlib, libpng, qt, lcms, freetype, libtiff, libjpeg,
libxml, and podofo directories into the Scribus install directory (where
scribus.exe is). Copy also the Dlls, lib and tcl directories from your python
260,25 → 265,48
 
Podofo sources can be downloaded from podofo.sourceforge.net. At the moment
those instructions are written, the recommended version to build Scribus on
Windows is one of the 0.8.x series. Podofo >= 0.9.0 will not work!!!!
Windows is one of the 0.8.x series.
 
Follow instructions in sources packages to build Podofo.
 
You will however probably find easier to directly download packages with Visual
Studio 2008 solutions ready to build. You can find required file at
You will however probably find easier to directly download packages with a
Visual Studio 2008 solution ready to build. You can find required file at
following address :
 
https://sourceforge.net/projects/scribus/files/scribus-libs/win32-msvc2008/
 
Download the both scribus-podofo-* file. Unpack it.
Download the scribus-podofo-*.zip archive. Unpack it.
 
Open the podofo solution located in podofo-whatever directory and build
Debug and Release configurations of PoDoFoLib project.
If present, open the PoDoFoLib-build.vsprops file located in podofo-whatever
directory and set all build variables according to your system. Then open the
podofo solution located in same directory and build Debug and Release configurations
of PoDoFoLib project.
 
Note : freetype, libtiff and libjpeg must have been installed and if
necessary compiled before attempting to build podofo.
 
---
Poppler :
 
Poppler sources can be downloaded http://poppler.freedesktop.org. At the moment
those instruction are written, the only version known to work with scribus is 0.17.1.
 
As Poppler is a bit tricky to build on Windows, you will however probably find easier
to directly download a ready to build package for Visual Studio 2008. You can find
required file at following address :
 
https://sourceforge.net/projects/scribus/files/scribus-libs/win32-msvc2008/
 
Download the scribus-poppler-*.zip archive. Unpack it.
 
Open the poppler-build.vsprops file located in poppler-whatever\win32 directory and set
all build variables according to your system. Then open the poppler.sln solution and
buid Debug-static and Release-static configurations.
 
Note : freetype, libtiff and libjpeg must have been installed and if
necessary compiled before attempting to build poppler.
 
---
Python :
 
Download latest Python 2.7 binaries (and only 2.7, 3.x will not work).
/trunk/Scribus/win32/vc9/Scribus-build.vsprops
6,7 → 6,7
>
<UserMacro
Name="QT4_DIR"
Value="F:\Libraries-vc9\qt-4.6.3"
Value="F:\Libraries-vc9\qt-4.7.3"
/>
<UserMacro
Name="BOOST_DIR"
18,7 → 18,7
/>
<UserMacro
Name="FREETYPE_DIR"
Value="F:\Libraries-vc9\freetype-2.4.2"
Value="F:\Libraries-vc9\freetype-2.4.6"
/>
<UserMacro
Name="ICONV_DIR"
26,7 → 26,7
/>
<UserMacro
Name="LCMS_DIR"
Value="F:\Libraries-vc9\lcms-2.0"
Value="F:\Libraries-vc9\lcms2-2.2"
/>
<UserMacro
Name="LIBJPEG_DIR"
42,7 → 42,7
/>
<UserMacro
Name="PODOFO_DIR"
Value="F:\Libraries-vc9\podofo-0.8.2"
Value="F:\Libraries-vc9\podofo-0.9.1"
/>
<UserMacro
Name="LIBXML2_DIR"
52,4 → 52,8
Name="PYTHON_DIR"
Value="F:\Libraries-vc9\Python-2.7.1"
/>
<UserMacro
Name="POPPLER_DIR"
Value="F:\Libraries-vc9\poppler-0.17.1"
/>
</VisualStudioPropertySheet>
/trunk/Scribus/win32/vc9/win-config.h
25,9 → 25,6
/* Can we use unicode functions (Windows) */
#define HAVE_UNICODE 1
 
/* Define if you have the CoreAudio API */
#undef HAVE_COREAUDIO
 
/* Define to 1 if you have the <crt_externs.h> header file. */
#undef HAVE_CRT_EXTERNS_H
 
70,12 → 67,15
/* Define if your system needs _NSGetEnviron to set up the environment */
#undef HAVE_NSGETENVIRON
 
/* Define if you have the development files for podofo */
#define HAVE_PODOFO 1
 
/* Define if you have the development files for podofo */
#define HVAE_POPPLER 1
 
/* Define if you have the development files for python */
#define HAVE_PYTHON 1
 
/* Define if you have the development files for podofo */
#define HAVE_PODOFO 1
 
/* Python */
#undef HAVE_PYTHON_23
 
137,27 → 137,6
/* Defines if your system has the libxml2 library6 */
#define HAVE_XML26 1
 
/* Suffix for lib directories */
#undef KDELIBSUFF
 
/* Name of package */
#undef PACKAGE
 
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
 
/* Define to the full name of this package. */
#undef PACKAGE_NAME
 
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
 
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
 
/* Define to the version of this package. */
#undef PACKAGE_VERSION
 
/* The size of a `char *', as computed by sizeof. */
#define SIZEOF_CHAR_P 4
 
/trunk/Scribus/win32/vc9/pdfimport/pdfimportdll.cpp
0,0 → 1,15
// pdfimport-1.3.x.cpp : définit le point d'entrée pour l'application DLL.
//
 
#define WIN32_LEAN_AND_MEAN // Exclure les en-têtes Windows rarement utilisés
// Fichiers d'en-tête Windows :
#include <windows.h>
 
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
 
/trunk/Scribus/win32/vc9/pdfimport/pdfimport.vcproj
0,0 → 1,301
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9,00"
Name="pdfimport"
ProjectGUID="{F58AF6DE-330F-48F5-97BB-ED2F30401712}"
RootNamespace="pdfimport"
Keyword="Win32Proj"
TargetFrameworkVersion="131072"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
<ToolFile
RelativePath="..\Scribus-build.rules"
/>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug-cairo|Win32"
OutputDirectory="..\..\..\..\Scribus-builds\Scribus-vc9-$(ConfigurationName)\scribus\plugins"
IntermediateDirectory="..\..\..\..\Scribus-builds\Build-objs-vc9\$(ConfigurationName)\$(TargetName)"
ConfigurationType="2"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops;..\Scribus-build.vsprops"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="uic.exe"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="moc.exe"
/>
<Tool
Name="rcc.exe"
/>
<Tool
Name="lrelease.exe"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..;..\..\..\scribus;&quot;$(QT4_DIR)\include\QtCore&quot;;&quot;$(QT4_DIR)\include\QtGui&quot;;&quot;$(QT4_DIR)\include\QtXml&quot;;&quot;$(QT4_DIR)\include&quot;;&quot;$(QT4_DIR)\src\3rdparty\zlib&quot;;&quot;$(LCMS_DIR)\include&quot;;&quot;$(CAIRO_DIR)\include&quot;;&quot;$(FREETYPE_DIR)\include&quot;;&quot;$(LIBJPEG_DIR)\include&quot;;&quot;$(LIBTIFF_DIR)\include&quot;;&quot;$(POPPLER_DIR)\include&quot;"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;QT_LARGEFILE_SUPPORT;QT_EDITION=QT_EDITION_DESKTOP;QT_DLL;QT_GUI_LIB;QT_CORE_LIB;QT_THREAD_SUPPORT;HAVE_FREETYPE_H;COMPILE_PLUGIN_AS_DLL;DOCDIR=\&quot;doc/\&quot;;ICONDIR=\&quot;icons/\&quot;;SAMPLESDIR=\&quot;samples/\&quot;;SCRIPTSDIR=\&quot;scripts/\&quot;;TEMPLATEDIR=\&quot;templates/\&quot;;LIBDIR=\&quot;libs/\&quot;;PLUGINDIR=\&quot;plugins/\&quot;;AVOID_WIN32_FILEIO"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="4"
DisableSpecificWarnings="4190;4251;4267;4996"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="QtCored4.lib QtGuid4.lib QtXmld4.lib freetypeD.lib libjpeg.a libtiff.lib lcms2_staticd.lib poppler_staticd.lib scribus-api.lib"
OutputFile="$(OutDir)\importpdf.dll"
LinkIncremental="2"
AdditionalLibraryDirectories="&quot;$(LCMS_DIR)\lib&quot;;&quot;$(FREETYPE_DIR)\lib&quot;;&quot;$(LIBJPEG_DIR)\lib&quot;;&quot;$(LIBTIFF_DIR)\lib&quot;;&quot;$(QT4_DIR)\lib&quot;;&quot;$(POPPLER_DIR)\lib&quot;;&quot;$(OutDir)\..&quot;"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\importpdf.pdb"
SubSystem="2"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
ImportLibrary="$(OutDir)\importpdf.lib"
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-cairo|Win32"
OutputDirectory="..\..\..\..\Scribus-builds\Scribus-vc9-$(ConfigurationName)\scribus\plugins"
IntermediateDirectory="..\..\..\..\Scribus-builds\Build-objs-vc9\$(ConfigurationName)\$(TargetName)"
ConfigurationType="2"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops;..\Scribus-build.vsprops"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="uic.exe"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="moc.exe"
/>
<Tool
Name="rcc.exe"
/>
<Tool
Name="lrelease.exe"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="1"
InlineFunctionExpansion="1"
OmitFramePointers="true"
AdditionalIncludeDirectories="..;..\..\..\scribus;&quot;$(QT4_DIR)\include\QtCore&quot;;&quot;$(QT4_DIR)\include\QtGui&quot;;&quot;$(QT4_DIR)\include\QtXml&quot;;&quot;$(QT4_DIR)\include&quot;;&quot;$(QT4_DIR)\src\3rdparty\zlib&quot;;&quot;$(LCMS_DIR)\include&quot;;&quot;$(CAIRO_DIR)\include&quot;;&quot;$(FREETYPE_DIR)\include&quot;;&quot;$(LIBJPEG_DIR)\include&quot;;&quot;$(LIBTIFF_DIR)\include&quot;;&quot;$(POPPLER_DIR)\include&quot;"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;QT_LARGEFILE_SUPPORT;QT_EDITION=QT_EDITION_DESKTOP;QT_DLL;QT_GUI_LIB;QT_CORE_LIB;QT_THREAD_SUPPORT;HAVE_FREETYPE_H;COMPILE_PLUGIN_AS_DLL;AVOID_WIN32_FILEIO"
StringPooling="true"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
DisableSpecificWarnings="4190;4251;4267;4996"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="QtCore4.lib QtGui4.lib QtXml4.lib freetype.lib libjpeg.a libtiff.lib lcms2_static.lib poppler_static.lib scribus-api.lib"
OutputFile="$(OutDir)\importpdf.dll"
LinkIncremental="1"
AdditionalLibraryDirectories="&quot;$(LCMS_DIR)\lib&quot;;&quot;$(FREETYPE_DIR)\lib&quot;;&quot;$(LIBJPEG_DIR)\lib&quot;;&quot;$(LIBTIFF_DIR)\lib&quot;;&quot;$(QT4_DIR)\lib&quot;;&quot;$(POPPLER_DIR)\lib&quot;;&quot;$(OutDir)\..&quot;"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\importpdf.pdb"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
ImportLibrary="$(OutDir)\importpdf.lib"
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="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm"
>
<File
RelativePath="..\..\..\scribus\plugins\import\pdf\importpdf.cpp"
>
</File>
<File
RelativePath="..\..\..\scribus\plugins\import\pdf\importpdfplugin.cpp"
>
</File>
<File
RelativePath="pdfimportdll.cpp"
>
</File>
<File
RelativePath="..\..\..\scribus\plugins\import\pdf\slaoutput.cpp"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc"
>
<File
RelativePath="..\..\..\scribus\plugins\import\pdf\importpdf.h"
>
<FileConfiguration
Name="Debug-cairo|Win32"
>
<Tool
Name="moc.exe"
/>
</FileConfiguration>
<FileConfiguration
Name="Release-cairo|Win32"
>
<Tool
Name="moc.exe"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\..\scribus\plugins\import\pdf\importpdfplugin.h"
>
<FileConfiguration
Name="Debug-cairo|Win32"
>
<Tool
Name="moc.exe"
/>
</FileConfiguration>
<FileConfiguration
Name="Release-cairo|Win32"
>
<Tool
Name="moc.exe"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\..\scribus\plugins\import\pdf\slaoutput.h"
>
</File>
</Filter>
<Filter
Name="Generated Moc Files"
>
<File
RelativePath="..\..\..\scribus\plugins\import\pdf\moc_importpdf.cpp"
>
</File>
<File
RelativePath="..\..\..\scribus\plugins\import\pdf\moc_importpdfplugin.cpp"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
/trunk/Scribus/win32/vc9/Scribus.sln
32,11 → 32,6
{B17FCD80-7978-4544-93C4-2FE1AC6FE9F3} = {B17FCD80-7978-4544-93C4-2FE1AC6FE9F3}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "psimport", "psimport\psimport.vcproj", "{6E8FF91A-DD16-4FAB-ACA5-8243453613F3}"
ProjectSection(ProjectDependencies) = postProject
{B17FCD80-7978-4544-93C4-2FE1AC6FE9F3} = {B17FCD80-7978-4544-93C4-2FE1AC6FE9F3}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "saveastemplate", "saveastemplate\saveastemplate.vcproj", "{F8CF727B-EF70-43DD-97F3-EDE68E0942D4}"
ProjectSection(ProjectDependencies) = postProject
{B17FCD80-7978-4544-93C4-2FE1AC6FE9F3} = {B17FCD80-7978-4544-93C4-2FE1AC6FE9F3}
260,6 → 255,11
{B17FCD80-7978-4544-93C4-2FE1AC6FE9F3} = {B17FCD80-7978-4544-93C4-2FE1AC6FE9F3}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pdfimport", "pdfimport\pdfimport.vcproj", "{F58AF6DE-330F-48F5-97BB-ED2F30401712}"
ProjectSection(ProjectDependencies) = postProject
{B17FCD80-7978-4544-93C4-2FE1AC6FE9F3} = {B17FCD80-7978-4544-93C4-2FE1AC6FE9F3}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug-cairo|Win32 = Debug-cairo|Win32
290,10 → 290,6
{BCDD9765-B310-44EB-890A-1704A1D18619}.Debug-cairo|Win32.Build.0 = Debug-cairo|Win32
{BCDD9765-B310-44EB-890A-1704A1D18619}.Release-cairo|Win32.ActiveCfg = Release-cairo|Win32
{BCDD9765-B310-44EB-890A-1704A1D18619}.Release-cairo|Win32.Build.0 = Release-cairo|Win32
{6E8FF91A-DD16-4FAB-ACA5-8243453613F3}.Debug-cairo|Win32.ActiveCfg = Debug-cairo|Win32
{6E8FF91A-DD16-4FAB-ACA5-8243453613F3}.Debug-cairo|Win32.Build.0 = Debug-cairo|Win32
{6E8FF91A-DD16-4FAB-ACA5-8243453613F3}.Release-cairo|Win32.ActiveCfg = Release-cairo|Win32
{6E8FF91A-DD16-4FAB-ACA5-8243453613F3}.Release-cairo|Win32.Build.0 = Release-cairo|Win32
{F8CF727B-EF70-43DD-97F3-EDE68E0942D4}.Debug-cairo|Win32.ActiveCfg = Debug-cairo|Win32
{F8CF727B-EF70-43DD-97F3-EDE68E0942D4}.Debug-cairo|Win32.Build.0 = Debug-cairo|Win32
{F8CF727B-EF70-43DD-97F3-EDE68E0942D4}.Release-cairo|Win32.ActiveCfg = Release-cairo|Win32
482,6 → 478,10
{F3471C52-C0FF-4690-B9BF-9A97A6F2BA2F}.Debug-cairo|Win32.Build.0 = Debug-cairo|Win32
{F3471C52-C0FF-4690-B9BF-9A97A6F2BA2F}.Release-cairo|Win32.ActiveCfg = Release-cairo|Win32
{F3471C52-C0FF-4690-B9BF-9A97A6F2BA2F}.Release-cairo|Win32.Build.0 = Release-cairo|Win32
{F58AF6DE-330F-48F5-97BB-ED2F30401712}.Debug-cairo|Win32.ActiveCfg = Debug-cairo|Win32
{F58AF6DE-330F-48F5-97BB-ED2F30401712}.Debug-cairo|Win32.Build.0 = Debug-cairo|Win32
{F58AF6DE-330F-48F5-97BB-ED2F30401712}.Release-cairo|Win32.ActiveCfg = Release-cairo|Win32
{F58AF6DE-330F-48F5-97BB-ED2F30401712}.Release-cairo|Win32.Build.0 = Release-cairo|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE