1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 |
<html> |
3 |
<head> |
4 |
<meta content="text/html; charset=ISO-8859-1" |
5 |
http-equiv="content-type"> |
6 |
<title>Windows Build Instructions</title> |
7 |
<link rel="shortcut icon" href="http://download.linuxsampler.org/favicon.ico" type="image/x-icon"> |
8 |
<link rel="stylesheet" type="text/css" href="libgig/css/content.css" title="content" media="all"> |
9 |
</head> |
10 |
<body> |
11 |
<h2 align="center">Windows Build Instructions <img src="gfx/logos/msys.png" alt="msys logo"> HOWTO by Andreas Persson</h2> |
12 |
<br> |
13 |
<center>July 26th, 2009</center><br> |
14 |
<div style="background-color: #F4F4FF; margin: 1em 3em 1em 3em; padding: 1em 1em 1em 2.2em;"> |
15 |
<a href="#intro">1. Introduction</a><br> |
16 |
<a href="#mingw">2. MinGW</a><br> |
17 |
<a href="#pkg">3. pkg-config and gtkmm</a><br> |
18 |
<a href="#msys">4. MSYS</a><br> |
19 |
<a href="#asio">5. ASIO SDK</a><br> |
20 |
<a href="#vst">6. VST SDK</a><br> |
21 |
<a href="#intl">7. intltool</a><br> |
22 |
<a href="#perl">8. Perl</a><br> |
23 |
<a href="#xslt">9. xsltproc</a><br> |
24 |
<a href="#setup">10. MSYS setup</a><br> |
25 |
<a href="#sqlite">11. Building SQLite</a><br> |
26 |
<a href="#sndfile">12. Building libsndfile</a><br> |
27 |
<a href="#gig">13. Building libgig</a><br> |
28 |
<a href="#ls">14. Building linuxsampler</a><br> |
29 |
<a href="#gigedit">15. Building gigedit</a><br> |
30 |
</div> |
31 |
<p> |
32 |
<center> |
33 |
<script type="text/javascript"><!-- |
34 |
google_ad_client = "pub-3408196773880325"; |
35 |
/* 728x90, created 8/3/09 */ |
36 |
google_ad_slot = "7744776541"; |
37 |
google_ad_width = 728; |
38 |
google_ad_height = 90; |
39 |
//--> |
40 |
</script> |
41 |
<script type="text/javascript" |
42 |
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> |
43 |
</script> |
44 |
</center> |
45 |
</p> |
46 |
|
47 |
<h3><a name="intro">1. Introduction</a></h3> |
48 |
|
49 |
<p>These are instructions for building libgig, linuxsampler and |
50 |
gigedit on Windows (32 bit) with help of MinGW and MSYS. After the |
51 |
MinGW and MSYS environment and the other prerequisites are installed, |
52 |
the build procedure will be the same as in Linux, that is, basically: |
53 |
./configure ; make ; make install.</p> |
54 |
|
55 |
<p>The versions of the files to download are just the ones I used |
56 |
before updating this text. You can probably use later ones if |
57 |
available.</p> |
58 |
|
59 |
<p>Some of the instructions below are marked with ** and ***:</p> |
60 |
|
61 |
<p>** = only needed if you are going to build from CVS, not if you are |
62 |
using the tar file releases</p> |
63 |
|
64 |
<p>*** = only needed if you are going to build gigedit</p> |
65 |
|
66 |
|
67 |
<h3><a name="mingw">2. MinGW</a></h3> |
68 |
|
69 |
<p>Download the MinGW installer, MinGW-5.1.4.exe, |
70 |
from <a href="http://www.mingw.org">www.mingw.org</a> and run it. The |
71 |
installer will automatically download and install further |
72 |
packages. Choose the base tools and the g++ compiler.</p> |
73 |
|
74 |
|
75 |
<h3><a name="pkg">3. pkg-config and gtkmm</a></h3> |
76 |
|
77 |
<p>The pkg-config tool is needed by the configure script in all the |
78 |
LinuxSampler packages. pkg-config is included in gtkmm, which is |
79 |
needed by gigedit. (If you are not going to build gigedit, you can |
80 |
download just GLib and pkg-config |
81 |
from <a href="http://www.gtk.org">www.gtk.org</a>.)</p> |
82 |
|
83 |
<p>Download the gtkmm windows installer, |
84 |
gtkmm-win32-devel-2.16.0-4.exe, |
85 |
from <a href="http://www.gtkmm.org">www.gtkmm.org</a>, and run it. Let |
86 |
the installer adjust the PATH variable as it wants.</p> |
87 |
|
88 |
|
89 |
<h3><a name="msys">4. MSYS</a></h3> |
90 |
|
91 |
<p>Download from "MSYS Base System, Current Release_ MSYS-1.0.11":</p> |
92 |
<pre>MSYS-1.0.11.exe</pre> |
93 |
|
94 |
<p>Run the installer.</p> |
95 |
|
96 |
<p>Download from "MSYS Supplementary Tools, Technology Preview_ Tools for MSYS-1.0.11":</p> |
97 |
<pre>bison-2.3-MSYS-1.0.11-1.tar.bz2 ** |
98 |
crypt-1.1-1-MSYS-1.0.11-1.tar.bz2 ** |
99 |
cvs-1.11.22-MSYS-1.0.11-1-bin.tar.gz ** |
100 |
perl-5.6.1-MSYS-1.0.11-1.tar.bz2 **</pre> |
101 |
|
102 |
<p>Extract these files to the msys root directory, by starting msys, do |
103 |
"cd /" followed by "tar xaf <i>filename</i>".</p> |
104 |
|
105 |
<p>Download from "MinGW autoconf, autoconf2.5, autoconf2.5-2.63-1":</p> |
106 |
<pre>autoconf2.5-2.63-1-mingw32-bin.tar.lzma **</pre> |
107 |
|
108 |
<p>From "MinGW autoconf, wrapper, autoconf-6-1":</p> |
109 |
<pre>autoconf-6-1-mingw32-bin.tar.lzma **</pre> |
110 |
|
111 |
<p>From "MinGW automake, automake1.11, automake1.11-1.11-1":</p> |
112 |
<pre>automake1.11-1.11-1-mingw32-bin.tar.lzma **</pre> |
113 |
|
114 |
<p>From "MinGW automake, wrapper, automake-4-1":</p> |
115 |
<pre>automake-4-1-mingw32-bin.tar.lzma **</pre> |
116 |
|
117 |
<p>From "MinGW gettext, gettext-0.17-1":</p> |
118 |
<pre>gettext-0.17.1-1-mingw32-dev.tar.lzma *** |
119 |
libgettextpo-0.17-1-mingw32-dll-0.tar.lzma *** |
120 |
libintl-0.17-1-mingw32-dll-8.tar.lzma ***</pre> |
121 |
|
122 |
<p>From "MinGW libiconv, libiconv-1.13.1-1":</p> |
123 |
<pre>libiconv-1.13.1-1-mingw32-dll-2.tar.lzma ***</pre> |
124 |
|
125 |
<p>From "GCC Version 4, Current Release_ gcc-4.4.0":</p> |
126 |
<pre>gcc-core-4.4.0-mingw32-dll.tar.gz ***</pre> |
127 |
|
128 |
<p>From "MinGW libtool, libtool-2.27a-1":</p> |
129 |
<pre>libtool-2.2.7a-1-mingw32-bin.tar.lzma</pre> |
130 |
|
131 |
<p>Extract all these files to the MinGW directory, by starting msys, do |
132 |
"cd /mingw" followed by "tar -x --lzma -f <i>filename</i>" for the |
133 |
.tar.lzma files and "tar xaf <i>filename</i>" for the .tar.gz file.</p> |
134 |
|
135 |
|
136 |
<h3><a name="asio">5. ASIO SDK</a></h3> |
137 |
|
138 |
<p>Download asiosdk2.2.zip from Steinberg. Extract it to your msys |
139 |
$HOME.</p> |
140 |
|
141 |
|
142 |
<h3><a name="vst">6. VST SDK</a></h3> |
143 |
|
144 |
<p>If you want to build the LinuxSampler VST plugin, download |
145 |
vst_sdk2_4_rev2.zip from Steinberg (note that you should not choose |
146 |
version 3). Extract it to msys $HOME.</p> |
147 |
|
148 |
|
149 |
<h3><a name="intl">7. intltool ***</a></h3> |
150 |
|
151 |
<p>Download intltool_0.40.4-1_win32.zip from |
152 |
<a href="http://ftp.gnome.org/pub/GNOME/binaries/win32/intltool">http://ftp.gnome.org/pub/GNOME/binaries/win32/intltool</a></p> |
153 |
|
154 |
<p>Unzip this into the gtkmm directory (C:\Program Files\gtkmm)</p> |
155 |
|
156 |
|
157 |
<h3><a name="perl">8. Perl ***</a></h3> |
158 |
|
159 |
<p>The perl in MSYS is lacking an XML parser which is needed by |
160 |
intltool. Download ActivePerl |
161 |
from <a href="http://www.activestate.com">www.activestate.com</a> and |
162 |
install it.</p> |
163 |
|
164 |
|
165 |
<h3><a name="xslt">9. xsltproc ***</a></h3> |
166 |
|
167 |
<p>The gigedit Makefile wants to build the gigedit quick start |
168 |
documentation, so it needs the xsltproc command. Download from |
169 |
<a href="http://www.zlatkovic.com/pub/libxml/">http://www.zlatkovic.com/pub/libxml/</a>:</p> |
170 |
|
171 |
<pre>libxml2-2.7.3.win32.zip |
172 |
libxslt-1.1.24.win32.zip</pre> |
173 |
|
174 |
<p>Copy the contents of the bin directories from both zip files to a |
175 |
directory of your choice. Add this directory last in your msys PATH, |
176 |
for example:</p> |
177 |
|
178 |
<pre>export PATH=$PATH:$HOME/xsltproc</pre> |
179 |
|
180 |
|
181 |
<h3><a name="setup">10. MSYS setup</a></h3> |
182 |
|
183 |
<p>Add the gtkmm aclocal directory to the list of extra directories |
184 |
used by autoconf. (Make sure the gtkmm path is the one where you |
185 |
installed it. The space in "Program Files" causes problems, so the |
186 |
short file name form is used here):</p> |
187 |
|
188 |
<pre>echo "/c/Progra~1/gtkmm/share/aclocal" >> /mingw/share/aclocal/dirlist</pre> |
189 |
|
190 |
<p>Add the gtkmm bin directory first in your PATH (the installer has |
191 |
already added gtkmm to the PATH, but it may have used "Program Files" |
192 |
with a space in it, which causes configure to fail):</p> |
193 |
|
194 |
<pre>export PATH=/c/Progra~1/gtkmm/bin:$PATH</pre> |
195 |
|
196 |
<p>Make sure pkg-config will find the libraries you build:</p> |
197 |
|
198 |
<pre>export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig</pre> |
199 |
|
200 |
|
201 |
<p>*** The intltool scripts expect perl to be in /opt/perl/bin, so |
202 |
make a link to the ActivePerl installation. Also add ActivePerl to |
203 |
PATH:</p> |
204 |
|
205 |
<pre>mkdir -p /opt/perl/bin |
206 |
ln -s /c/Perl/bin/perl.exe /opt/perl/bin |
207 |
export PATH=/c/Perl/bin:$PATH</pre> |
208 |
|
209 |
|
210 |
<p>*** MinGW gettext and gtkmm both include libintl. We want the gtkmm |
211 |
version. Remove the MinGW files so the gettext configure tools don't |
212 |
choose the wrong version:</p> |
213 |
|
214 |
<pre>rm /mingw/include/libintl.h /mingw/lib/libintl*</pre> |
215 |
|
216 |
|
217 |
<p>*** The gettext configure tools also need:</p> |
218 |
|
219 |
<pre>export CPPFLAGS="-I/c/Progra~1/gtkmm/include" |
220 |
export LDFLAGS="-L/c/Progra~1/gtkmm/lib"</pre> |
221 |
|
222 |
|
223 |
<h3><a name="sqlite">11. Building SQLite</a></h3> |
224 |
|
225 |
<p>The windows precompiled version of SQLite doesn't include the |
226 |
neccessary development files, so it's best to build SQLite yourself. |
227 |
Download sqlite-amalgamation-3.6.16.tar.gz |
228 |
from <a href="http://www.sqlite.org">www.sqlite.org</a> |
229 |
and extract it to your $HOME:</p> |
230 |
|
231 |
<pre>cd |
232 |
tar xzf sqlite-amalgamation-3.6.16.tar.gz</pre> |
233 |
|
234 |
<p>Build and install:</p> |
235 |
|
236 |
<pre>cd sqlite-3.6.16 |
237 |
CFLAGS=-O2 ./configure |
238 |
make |
239 |
make install</pre> |
240 |
|
241 |
<p>(Without CFLAGS=-O2, the build will fail. The MinGW compiler has |
242 |
some problems with creating the debug info for some reason.)</p> |
243 |
|
244 |
<h3><a name="sndfile">12. Building libsndfile</a></h3> |
245 |
|
246 |
<p>The windows precompiled version of libsndfile doesn't include the |
247 |
neccessary pkg-config file, so it's best to build libsndfile |
248 |
yourself. Download libsndfile-1.0.20.tar.gz |
249 |
from <a href="http://www.mega-nerd.com/libsndfile/">www.mega-nerd.com</a> and |
250 |
extract it to your $HOME:</p> |
251 |
|
252 |
<pre>cd |
253 |
tar xzf libsndfile-1.0.20.tar.gz</pre> |
254 |
|
255 |
<p>Build and install:</p> |
256 |
|
257 |
<pre>cd libsndfile-1.0.20 |
258 |
./configure |
259 |
make |
260 |
make install</pre> |
261 |
|
262 |
|
263 |
<h3><a name="gig">13. Building libgig</a></h3> |
264 |
|
265 |
<p>Just use the same commands as you would in linux:</p> |
266 |
|
267 |
<pre>make -f Makefile.cvs (if you build from CVS) |
268 |
./configure (add any configuration parameters as you wish) |
269 |
make |
270 |
make install</pre> |
271 |
|
272 |
|
273 |
<h3><a name="ls">14. Building linuxsampler</a></h3> |
274 |
|
275 |
<pre>make -f Makefile.cvs (if you build from CVS) |
276 |
./configure --enable-asiosdk-dir=$HOME --enable-vstsdk-dir=$HOME/vstsdk2.4 |
277 |
make |
278 |
make install</pre> |
279 |
|
280 |
|
281 |
<h3><a name="gigedit">15. Building gigedit</a></h3> |
282 |
|
283 |
<pre>make -f Makefile.cvs (if you build from CVS) |
284 |
./configure |
285 |
make |
286 |
make install</pre> |
287 |
</body> |
288 |
</html> |