/[svn]/web/trunk/www.linuxsampler.org/msys.html
ViewVC logotype

Contents of /web/trunk/www.linuxsampler.org/msys.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1918 - (show annotations) (download) (as text)
Sat Jun 13 13:35:13 2009 UTC (14 years, 10 months ago) by persson
File MIME type: text/html
File size: 8546 byte(s)
* new version of msys, gtkmm, libsndfile
* added SQLite

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

  ViewVC Help
Powered by ViewVC