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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1811 - (hide annotations) (download) (as text)
Sat Dec 20 19:17:23 2008 UTC (15 years, 3 months ago) by persson
File MIME type: text/html
File size: 8450 byte(s)
* fixed name of gtkmm installer (devel instead of runtime!)
* added gawk to prevent errors about match function
* fixes for "Program Files" having a space in it

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

  ViewVC Help
Powered by ViewVC