Moving files to packaging and extracing new tarball.
[profile/ivi/glib2.git] / build / win32 / vs10 / README.txt
1 Please do not compile this package (GLib) 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 Please refer to the following GNOME Live! page for more detailed\r
6 instructions on building GLib and its dependencies with Visual C++:\r
7 \r
8 https://live.gnome.org/GTK%2B/Win32/MSVCCompilationOfGTKStack\r
9 \r
10 This VS10 solution and the projects it includes are intented to be used\r
11 in a GLib source tree unpacked from a tarball. In a git checkout you\r
12 first need to use some Unix-like environment or run build/win32/setup.py, \r
13 which will do the work for you:\r
14 \r
15 $python build/win32/setup.py --perl path_to_your_perl.exe\r
16 \r
17 for more usage on this script, run\r
18 $python build/win32/setup.py -h/--help\r
19 \r
20 The required dependencies are zlib, proxy-libintl and LibFFI. Fetch the latest\r
21 proxy-libintl-dev and zlib-dev zipfiles from\r
22 http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/ for 32-bit\r
23 builds, and correspondingly\r
24 http://ftp.gnome.org/pub/GNOME/binaries/win64/dependencies/ for 64-bit\r
25 builds.\r
26 \r
27 One may wish to build his/her own ZLib-It is recommended that ZLib is\r
28 built using the win32/Makefile.msc makefile with VS10 with the ASM routines\r
29 to avoid linking problems-see win32/Makefile.msc in ZLib for more details.\r
30 \r
31 For LibFFI, please get version 3.0.10 or later, as Visual C++ build support\r
32 was added in the 3.0.10 release series.  Please see the README file that\r
33 comes with the LibFFI source package for more details on how to build LibFFI\r
34 on Visual C++-please note that the mozilla-build package from Mozilla is needed\r
35 in order to build LibFFI on Windows.\r
36 \r
37 One may optionally use his/her own PCRE installation by selecting the\r
38 (BuildType)_ExtPCRE configuration, but please note the PCRE must be built\r
39 with VS10 with unicode support using the /MD (release) or /MDd (debug)\r
40 runtime option which corresponds to your GLib build flavour (release, debug).\r
41 (These are the defaults set by CMAKE, which is used in recent versions of PCRE.)\r
42 Not doing so will most probably result in unexpected crashes in \r
43 your programs due to the use of different CRTs.  If using a static PCRE\r
44 build, add PCRE_STATIC to the "preprocessor definitions".\r
45 Note that one may still continue to build with the bundled PCRE by selecting\r
46 the (BuildType) configuration.\r
47 \r
48 Set up the source tree as follows under some arbitrary top\r
49 folder <root>:\r
50 \r
51 <root>\<this-glib-source-tree>\r
52 <root>\vs10\<PlatformName>\r
53 \r
54 *this* file you are now reading is thus located at\r
55 <root>\<this-glib-source-tree>\build\win32\vs10\README.\r
56 \r
57 <PlatformName> is either Win32 or x64, as in VS10 project files.\r
58 \r
59 You should unpack the proxy-libintl-dev zip file into\r
60 <root>\vs10\<PlatformName>, so that for instance libintl.h end up at\r
61 <root>\vs10\<PlatformName>\include\libintl.h.\r
62 \r
63 For LibFFI, one should also put the generated ffi.h and ffitarget.h\r
64 into <root>\vs10\<PlatformName>\include\ and the compiled static libffi.lib\r
65 (or copy libffi-convenience.lib into libffi.lib) into \r
66 <root>\vs10\<PlatformName>\lib\.\r
67 \r
68 The "install" project will copy build results and headers into their\r
69 appropriate location under <root>\vs10\<PlatformName>. For instance,\r
70 built DLLs go into <root>\vs10\<PlatformName>\bin, built LIBs into\r
71 <root>\vs10\<PlatformName>\lib and GLib headers into\r
72 <root>\vs10\<PlatformName>\include\glib-2.0. This is then from where\r
73 project files higher in the stack are supposed to look for them, not\r
74 from a specific GLib source tree.\r
75 \r
76 --Tor Lillqvist <tml@iki.fi>\r
77 --Updated by Chun-wei Fan <fanc999@gmail.com>\r