Initial packaging to sync OBS with git/gerrit
[profile/ivi/gtk3.git] / build / win32 / vs9 / README.txt
1 Please do not compile this package (GTK+) in paths that contain\r
2 spaces in them-as strange problems may occur during compilation or during\r
3 the use of the library.\r
4 \r
5 A more detailed outline for instructions on building the GTK+ with Visual\r
6 C++ can be found in the following GNOME Live! page:\r
7 \r
8 https://live.gnome.org/GTK%2B/Win32/MSVCCompilationOfGTKStack\r
9 \r
10 This VS9 solution and the projects it includes are intented to be used\r
11 in a GTK+ source tree unpacked from a tarball. In a git checkout you\r
12 first need to use some Unix-like environment or manual work to expand\r
13 the files needed, like config.h.win32.in into config.h.win32 and the\r
14 .vcprojin files here into corresponding actual .vcproj files.\r
15 \r
16 You will need the parts from below in the GTK+ stack: GDK-Pixbuf, Pango,\r
17 ATK and GLib.  External dependencies are at least Cairo\r
18 (with Cairo-GObject support, meaning Cairo 1.10.x or later), zlib, libpng,\r
19 gettext-runtime, fontconfig*, freetype*, expat*.  See the \r
20 build/win32/vs9/README.txt file in glib for details where to unpack them.\r
21 \r
22 It is recommended that one builds the dependencies with VS9 as far as\r
23 possible, especially those from and using the GTK+ stack (i.e. GLib,\r
24 Cairo, ATK, Pango, GDK-Pixbuf), so that crashes caused by mixing calls\r
25 to different CRTs can be kept at a minimum.  \r
26 \r
27 zlib, libpng, and Cairo do contain support for compiling under VS9\r
28 using VS project files and/or makefiles at this time of writing, For the\r
29 GTK+ stack, VS9 project files are either available under\r
30 $(srcroot)/build/vs9 in the case of GLib (stable/unstable), ATK\r
31 (stable/unstable) and GDK-Pixbuf (unstable), and should be in the next\r
32 unstable version of Pango.  There is no known official VS9 build\r
33 support for fontconfig (along with freetype and expat) and\r
34 gettext-runtime, so please use the binaries from: \r
35 \r
36 ftp://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/ (32 bit)\r
37 ftp://ftp.gnome.org/pub/GNOME/binaries/win64/dependencies/ (64 bit)\r
38 \r
39 Unzip the binaries obtained from ftp.gnome.org in <root>\vs9\<PlatformName>,\r
40 and build the following, if not already done so: \r
41 \r
42 Note: put the resulting zlib, libpng, pcre and Cairo files as follows:\r
43  .dll files: <root>\vs9\<PlatformName>\bin\r
44  .lib files: <root>\vs9\<PlatformName>\lib\r
45  .h files: <root>\vs9\<PlatformName>\include\r
46 \r
47 The recommended build order for these dependencies:\r
48 (first unzip any dependent binaries downloaded from the ftp.gnome.org\r
49  as described in the README.txt file in the build/win32/vs9 folder)\r
50 -zlib\r
51 -libpng\r
52 -(for GDK-Pixbuf, if not using GDI+) IJG JPEG\r
53 -(for GDK-Pixbuf, if not using GDI+) libtiff\r
54  [libtiff requires zlib and IJG JPEG]\r
55 -(for GDK-Pixbuf, if not using GDI+) jasper [jpeg-2000 library])\r
56 -(optional for GLib) PCRE (version 8.12 or later, use of CMake to\r
57   build PCRE is recommended-see build/win32/vs9/README.txt of GLib)\r
58 -GLib **\r
59 -Cairo (inclusive of Cairo-GObject)\r
60 -ATK**\r
61 -Pango**\r
62 -GDK-Pixbuf**\r
63 (note the last 3 dependencies are not interdependent, so the last 3\r
64  dependencies can be built in any order)\r
65 \r
66 The "install" project will copy build results and headers into their\r
67 appropriate location under <root>\vs9\<PlatformName>. For instance,\r
68 built DLLs go into <root>\vs9\<PlatformName>\bin, built LIBs into\r
69 <root>\vs9\<PlatformName>\lib and GTK+ headers into\r
70 <root>\vs9\<PlatformName>\include\gtk-3.0. This is then from where\r
71 project files higher in the stack are supposed to look for them, not\r
72 from a specific GLib source tree.\r
73 \r
74 *About the dependencies marked with *: These dependencies are optional\r
75  as those are not compulsory components for building and running GTK+\r
76  itself, but note that they are needed for people running and building\r
77  GIMP or those who need complex script support via fontconfig.  They\r
78  are referred to by components in Cairo and Pango mainly.\r
79  Decide whether you need fontconfig support prior to building Cairo\r
80  and Pango.\r
81 \r
82 **:Put the sources of the packages marked with ** in <root>\<package-\r
83     source-tree>, and build with VS9 from there.\r
84 \r
85 --Tor Lillqvist <tml@iki.fi>\r
86 --Updated by Chun-wei Fan <fanc999@yahoo.com.tw>\r