Subversion Repositories Scribus

Rev

Rev 10797 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
10780 craig 1
BUILDING SCRIBUS ON MICROSOFT WINDOWS
2
=====================================
3
 
4
This documentation is minimal, and will be replaced by more detailed
5
information once the CMake-based win32 builds are better tested.
6
 
7
You will need:
8
	- Microsoft Windows XP (others may work but are untested)
9
	- Microsoft Visual Studio Express Edition 8 2005
10
	- The Microsoft Platform SDK
11
	- CMake 2.5.x
12
	- Qt 4.3 built with Visual Studio 8 2005
13
	- libtiff and libjpeg from the GnuWin32 project
14
	- libxml2 from the libxml project
15
	- freetype sources
16
	- LittleCMS sources
17
	- PoDoFo 0.5.0 (and ONLY 0.5.0) sources.
18
	- Python 2.5 . For debug builds, you'll need a release that
19
	  contains the python25_d.dll .
20
 
21
[TODO: add URLs]
22
 
23
First, you must compile the freetype, lcms, and podofo libraries using Visual
24
Studio 2005 . You may get away with using a freetype from gnuwin32, but
25
this isn't recommended.
26
 
27
You must modify lcms.h to prevent it from defining `cdecl'. [TODO: other changes] [ TODO: line numbers / patch ]. This is only required to use the header with Scribus; it's Ok to use a library built without these changes.
28
 
29
[TODO: detail on building dependences]
30
 
31
To build scribus its self, you should create a new empty build directory
32
outside the Scribus source tree. In this directory, create a new text file and
33
name it "build.cmd". Ignore the warning about changing the file extension.
34
 
35
Open build.cmd in a text editor, and paste the following into it:
36
 
37
---
38
rem Dependency paths:
39
set CMAKE=C:\Program Files\CMake 2.5\bin\cmake.exe
40
set GNUWIN32DIR=c:\developer\gnuwin32\
41
set QTDIR=C:\developer\Qt\qt-win-opensource-src-4.3.2-snapshot-20070929
42
set LCMSDIR=c:\developer\libs\lcms-1.16
43
set TIFFDIR=%GNUWIN32DIR%
44
set JPEGDIR=%GNUWIN32DIR%
45
set FREETYPEDIR=%GNUWIN32DIR%
46
set PODOFODIR=c:\developer\podofo\050-vs-inst\
47
set PODOFOSHARED=1
48
set LIBXMLDIR=c:\developer\libs\libxml2-2.6.30.win32\
49
set SCRIBUSINSTALLDIR=c:\developer\scribus-bin
50
rem
51
rem
52
set PATH=%QTDIR%\bin;%PATH%
53
del cmakecache.txt
54
"%CMAKE%" -G "Visual Studio 8 2005" -DCMAKE_INCLUDE_PATH=%GNUWIN32DIR%\include;%LCMSDIR%\include;%TIFFDIR%\include;%JPEGDIR%\include;%FREETYPEDIR%\include;%PODOFODIR%\include;%LIBXMLDIR%\include -DCMAKE_LIBRARY_PATH=%GNUWIN32DIR%\lib;%LCMSDIR%\lib;%TIFFDIR%\lib;%JPEGDIR%\lib;%FREETYPEDIR%\lib;%PODOFODIR%\lib -DLIBPODOFO_SHARED=%PODOFOSHARED% -DCMAKE_INSTALL_PREFIX=c:\developer\scribus-bin ..\scribus-trunk
55
---
56
 
57
Update the dependency paths to match your system. Now open a cmd.exe window, cd into the build directory, and run build.cmd . If all goes well, it'll find your libraries and exit successfully.
58
 
59
Open the solution that CMake generated in Visual Studio and build it. On
60
Windows it's easier to do a release build as you don't need to build a debug
61
Qt, python, etc.
62
 
63
If it all builds, manually build the INSTALL project to trigger an install. Now
64
copy the DLLs from the qt, lcms, freetype, libtiff, libjpeg, libxml, and podofo
65
directories into the Scribus install directory (where scribus.exe is). It
66
should now run.
67
 
68
Crash problems at runtime? Verify that Qt, freetype, lcms, and Scribus all use
69
the same runtime, and that all were built for debugging or all for release not
70
a mixture of the two. Windows does not permit you to mix debug and release
71
executables like other platforms do.
72
 
73
You can use depends.exe to check that the runtimes match.
74