-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathREADME.windows-dev
192 lines (142 loc) · 4.4 KB
/
README.windows-dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
-*- outline -*-
* Install ActivePerl
* Install msysGit
http://code.google.com/p/msysgit/
* Install minGW
** MSYS Base (1.0.11)
** MinGW (mingw-5.1.4.exe)
Current, with g++, no make
*** make /etc/fstab
c:/mingw /mingw
c:/perl /opt/perl
*** make ~/.profile
PATH=$PATH:/opt/perl/bin
export PKG_CONFIG_PATH=/local/lib/pkgconfig
** MSYS autoconf
** MSYS automake
** MSYS libtool
** MSYS bison
** MSYS flex
** MSYS regex (1)
** MSYS perl
** MSYS crypt (libcrypt)
* Install tools/libraries
from http://ftp.gnome.org/pub/gnome/binaries/win32/ (dependencies/)
to c:\msys\1.0
** pkg-config
** libiconv
** gettext-tools (0.17)
** gettext-runtime
** gettext-runtime-dev
** pango
** pango-dev
** cairo (1.8!)
** cairo-dev (1.8!)
** zlib
** zlib-dev
** libpng
** libpng-dev
** atk
** atk-dev
** glib
** glib-dev
** gtk+
** gtk+-dev
** gtksourceview
** gtksourceview-dev
** intltool
** libxml2
cp /bin/libxml2-2.dll /bin/libxml2.dll
** libxml2-dev
** fontconfig
** fontconfig-dev
** freetype
** freetype-dev
from http://sourceforge.net/projects/mingw-cross/files/
** zip
** unzip
** giflib
** fftw
* Compile babl
http://ftp.gnome.org/pub/gimp/babl/0.1/
./configure "CFLAGS=-O2 -mms-bitfields"
* Compile gegl
http://ftp.gnome.org/pub/gimp/gegl/0.1/
./configure "CFLAGS=-O2 -mms-bitfields -I/include" LDFLAGS=-Wl,--enable-auto-import
** patch gegl/gegl-init.c
--- gegl-init.c.old 2009-08-08 18:20:19 +0200
+++ gegl-init.c 2009-08-08 18:25:46 +0200
@@ -502,10 +502,11 @@
gchar *module_path;
#ifdef G_OS_WIN32
- module_path =
- g_win32_get_package_installation_subdirectory (NULL,
- "lib" GEGL_LIBRARY "-0.dll",
- "lib/" GEGL_LIBRARY);
+ {
+ gchar *dir = g_win32_get_package_installation_directory_of_module (NULL);
+ module_path = g_build_filename (dir, "lib/" GEGL_LIBRARY, NULL);
+ g_free (dir);
+ }
#else
module_path = g_build_filename (LIBDIR, GEGL_LIBRARY, NULL);
#endif
* Compile GIMP
from source
./configure --disable-python --without-libtiff --without-libjpeg "CFLAGS=-O2 -mms-bitfields -I/include"
** patch app/sanity.c
--- sanity.c.save 2009-08-08 20:26:46 +0200
+++ sanity.c 2009-08-08 20:27:56 +0200
@@ -251,6 +251,11 @@
return NULL;
}
+#define VERSION_TOO_OLD(maj,min,mic,rmaj,rmin,rmic) ( \
+ (maj)<(rmaj) || \
+ ((maj)==(rmaj) && (min)<(rmin)) || \
+ ((maj)==(rmaj) && (min)==(rmin) && (mic)<(rmic)) ) \
+
static gchar *
sanity_check_babl (void)
{
@@ -266,9 +271,8 @@
&babl_minor_version,
&babl_micro_version);
- if (babl_major_version < BABL_REQUIRED_MAJOR ||
- babl_minor_version < BABL_REQUIRED_MINOR ||
- babl_micro_version < BABL_REQUIRED_MICRO)
+ if (VERSION_TOO_OLD (babl_major_version, babl_minor_version, babl_micro_version,
+ BABL_REQUIRED_MAJOR, BABL_REQUIRED_MINOR, BABL_REQUIRED_MICRO))
{
return g_strdup_printf
("BABL version too old!\n\n"
@@ -304,9 +308,8 @@
&gegl_minor_version,
&gegl_micro_version);
- if (gegl_major_version < GEGL_REQUIRED_MAJOR ||
- gegl_minor_version < GEGL_REQUIRED_MINOR ||
- gegl_micro_version < GEGL_REQUIRED_MICRO)
+ if (VERSION_TOO_OLD (gegl_major_version, gegl_minor_version, gegl_micro_version,
+ GEGL_REQUIRED_MAJOR, GEGL_REQUIRED_MINOR, GEGL_REQUIRED_MICRO))
{
return g_strdup_printf
("GEGL version too old!\n\n"
* Install CLISP
http://sourceforge.net/projects/clisp/files/
* Install GSL
http://gnuwin32.sourceforge.net/packages/gsl.htm
binary + devel
* Install LLVM
http://llvm.org/releases/download.html
from source - separate build dir
configure --prefix=/local --enable-targets=x86
make "CFLAGS=-O2 -mms-bitfields" "CXXFLAGS=-O2 -mms-bitfields"
also install gcc front-end binaries (to /local)
* Assorted links
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/
http://ftp.gnome.org/pub/gnome/binaries/win32/
http://wiki.gimp.org/gimp/CompileGimpAtWindowsShellScript
http://wiki.gimp.org/gimp/GetMingwBatch
http://sourceforge.net/projects/mingw-cross/files/
http://sourceforge.net/projects/mingw/files/
http://gcam.js.cx/index.php/MinGW_MSys_GTK_Configuration_Guide
http://sourceforge.net/projects/gimp-win/files/