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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1807 by persson, Sun Dec 14 13:55:43 2008 UTC revision 1918 by persson, Sat Jun 13 13:35:13 2009 UTC
# Line 10  Line 10 
10  <body>  <body>
11  <h2 align="center">Windows Build Instructions &nbsp; <img src="gfx/logos/msys.png" alt="msys logo"> &nbsp; HOWTO by Andreas Persson</h2>  <h2 align="center">Windows Build Instructions &nbsp; <img src="gfx/logos/msys.png" alt="msys logo"> &nbsp; HOWTO by Andreas Persson</h2>
12  <br>  <br>
13  <center>December&nbsp;14th,&nbsp;2008</center><br>  <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;">  <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>  <a href="#intro">1.&nbsp; Introduction</a><br>
16  <a href="#mingw">2.&nbsp; MinGW</a><br>  <a href="#mingw">2.&nbsp; MinGW</a><br>
# Line 22  Line 22 
22  <a href="#perl">8.&nbsp; Perl</a><br>  <a href="#perl">8.&nbsp; Perl</a><br>
23  <a href="#xslt">9.&nbsp; xsltproc</a><br>  <a href="#xslt">9.&nbsp; xsltproc</a><br>
24  <a href="#setup">10.&nbsp; MSYS setup</a><br>  <a href="#setup">10.&nbsp; MSYS setup</a><br>
25  <a href="#sndfile">11.&nbsp; Building libsndfile</a><br>  <a href="#sqlite">11.&nbsp; Building SQLite</a><br>
26  <a href="#gig">12.&nbsp; Building libgig</a><br>  <a href="#sndfile">12.&nbsp; Building libsndfile</a><br>
27  <a href="#ls">13.&nbsp; Building linuxsampler</a><br>  <a href="#gig">13.&nbsp; Building libgig</a><br>
28  <a href="#gigedit">14.&nbsp; Building gigedit</a><br>  <a href="#ls">14.&nbsp; Building linuxsampler</a><br>
29    <a href="#gigedit">15.&nbsp; Building gigedit</a><br>
30  </div>  </div>
31    
32    
# Line 38  the build procedure will be the same as Line 39  the build procedure will be the same as
39  ./configure ; make ; make install.</p>  ./configure ; make ; make install.</p>
40    
41  <p>The versions of the files to download are just the ones I used  <p>The versions of the files to download are just the ones I used
42  before writing this text. You can probably use later ones if  before updating this text. You can probably use later ones if
43  available.</p>  available.</p>
44    
45  <p>Some of the instructions below are marked with ** and ***:</p>  <p>Some of the instructions below are marked with ** and ***:</p>
# Line 52  available.</p> Line 53  available.</p>
53  <h3><a name="mingw">2.&nbsp; MinGW</a></h3>  <h3><a name="mingw">2.&nbsp; MinGW</a></h3>
54    
55  <p>Download the MinGW installer, MinGW-5.1.4.exe,  <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.</p>  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>  <h3><a name="pkg">3.&nbsp; pkg-config and gtkmm</a></h3>
# Line 64  download just GLib and pkg-config Line 67  download just GLib and pkg-config
67  from <a href="http://www.gtk.org">www.gtk.org</a>.)</p>  from <a href="http://www.gtk.org">www.gtk.org</a>.)</p>
68    
69  <p>Download the gtkmm windows installer,  <p>Download the gtkmm windows installer,
70  gtkmm-win32-runtime-2.14.1-3.exe,  gtkmm-win32-devel-2.16.0-3.exe,
71  from <a href="http://www.gtkmm.org">www.gtkmm.org</a>, and run it. Let  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>  the installer adjust the PATH variable as it wants.</p>
73    
74    
75  <h3><a name="msys">4.&nbsp; MSYS</a></h3>  <h3><a name="msys">4.&nbsp; MSYS</a></h3>
76    
77  <p>I use the 1.0.11 Technology Preview version, as I had problems  <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>  building DLLs with the 1.0.10 current version.</p>
79    
80  <p>Download from "MSYS Base System, Technology Preview: MSYS-1.0.11":</p>  <p>Download from "MSYS Base System, Release Candidate: MSYS-1.0.11":</p>
81    
82  <pre>msysCORE-1.0.11-20080826.tar.gz  <pre>MSYS-1.0.11-rc-1.exe</pre>
 bash-3.1-MSYS-1.0.11-1.tar.bz2</pre>  
   
 <p>Unpack these to a directory of your choice, for example C:\msys. As  
 1.0.11 doesn't have an installer yet, you need to have an unpacker  
 that supports tar.gz/tar.bz, for example 7-Zip. The rest of the files  
 you can unpack with the tar included in msysCORE.</p>  
   
 <p>Run the postinstall\pi.bat file and specify your MinGW  
 directory.</p>  
83    
84    <p>Run the installer.</p>
85    
86  <p>Download from "MSYS Supplementary Tools, Technology Preview: Tools for  <p>Download from "MSYS Supplementary Tools, Technology Preview: Tools for
87  MSYS-1.0.11":</p>  MSYS-1.0.11":</p>
# Line 105  libiconv-1.11-1-dll.tar.bz2 *** Line 100  libiconv-1.11-1-dll.tar.bz2 ***
100  libtool1.5-1.5.25a-1-bin.tar.bz2  libtool1.5-1.5.25a-1-bin.tar.bz2
101  perl-5.6.1-MSYS-1.0.11-1.tar.bz2 ***</pre>  perl-5.6.1-MSYS-1.0.11-1.tar.bz2 ***</pre>
102    
103  <p>Download from "MSYS Supplementary Tools, Current Release:  <p>Extract all these files to the msys directory, by starting msys, do
104  msysDTK-1.0.1":</p>  "cd /" followed by "tar xjf <i>filename</i>" for .tar.bz2 files and
105    "tar xzf <i>filename</i>" for .tar.gz files.</p>
 <pre>m4-1.4.7-MSYS.tar.bz2 **</pre>  
   
   
 <p>Extract all these files to the msys directory, by starting msys,  
 do "cd /" and use tar.</p>  
106    
107    
108  <h3><a name="asio">5.&nbsp; ASIO SDK</a></h3>  <h3><a name="asio">5.&nbsp; ASIO SDK</a></h3>
# Line 133  version 3). Extract it to msys $HOME.</p Line 123  version 3). Extract it to msys $HOME.</p
123  <p>Download intltool_0.40.4-1_win32.zip from  <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>  <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\local for  <p>Unzip this into the msys local directory (C:\msys\1.0\local)</p>
 example)</p>  
127    
128    
129  <h3><a name="perl">8.&nbsp; Perl ***</a></h3>  <h3><a name="perl">8.&nbsp; Perl ***</a></h3>
# Line 151  install it.</p> Line 140  install it.</p>
140  documentation, so it needs the xsltproc command. Download from  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>  <a href="ftp://ftp.zlatkovic.com/pub/libxml/">ftp://ftp.zlatkovic.com/pub/libxml/</a>:</p>
142    
143  <pre>libxml2-2.7.2+.win32.zip  <pre>libxml2-2.7.3.win32.zip
144  libxslt-1.1.24.win32.zip</pre>  libxslt-1.1.24.win32.zip</pre>
145    
146  <p>Copy the contents of the bin directories from both zip files to a  <p>Copy the contents of the bin directories from both zip files to a
# Line 163  for example:</p> Line 152  for example:</p>
152    
153  <h3><a name="setup">10.&nbsp; MSYS setup</a></h3>  <h3><a name="setup">10.&nbsp; MSYS setup</a></h3>
154    
155  <p>Add the gtkmm aclocal directory to the list of extra directories used  <p>Add the gtkmm aclocal directory to the list of extra directories
156  by autoconf (make sure the gtkmm path is the one where you installed  used by autoconf. (Make sure the gtkmm path is the one where you
157  it):</p>  installed it. The space in "Program Files" causes problems, so the
158    short file name form is used here):</p>
159  <pre>echo "/c/Program Files/gtkmm/share/aclocal" >> /usr/local/share/aclocal/dirlist</pre>  
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>  <p>Make sure pkg-config will find the LinuxSampler libraries:</p>
169    
# Line 193  choose the wrong version:</p> Line 188  choose the wrong version:</p>
188    
189  <p>*** The gettext configure tools also need:</p>  <p>*** The gettext configure tools also need:</p>
190    
191  <pre>export CPPFLAGS="-I/c/Program Files/gtkmm/include"  <pre>export CPPFLAGS="-I/c/Progra~1/gtkmm/include"
192  export LDFLAGS="-L/c/Program Files/gtkmm/lib"</pre>  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  <h3><a name="sndfile">11.&nbsp; Building libsndfile</a></h3>  <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  <p>The windows precompiled version of libsndfile doesn't include the
219  neccessary pkg-config file, so it's best to build libsndfile  neccessary pkg-config file, so it's best to build libsndfile
220  yourself. Download libsndfile-1.0.17.tar.gz  yourself. Download libsndfile-1.0.20.tar.gz
221  from <a href="http://www.mega-nerd.com/libsndfile/">www.mega-nerd.com</a> and  from <a href="http://www.mega-nerd.com/libsndfile/">www.mega-nerd.com</a> and
222  extract it to your $HOME:</p>  extract it to your $HOME:</p>
223    
224  <pre>cd  <pre>cd
225  tar xzf libsndfile-1.0.17.tar.gz</pre>  tar xzf libsndfile-1.0.20.tar.gz</pre>
   
 <p>To prevent a compilation error for the test cases, add</p>  
226    
227  <pre>#include &lt;stdint.h></pre>  <p>Build and install:</p>
228    
229  <p>to tests/utils.h.</p>  <pre>cd libsndfile-1.0.20
230    ./configure
 <pre>./configure  
231  make  make
232  make install</pre>  make install</pre>
233    
234    
235  <h3><a name="gig">12.&nbsp; Building libgig</a></h3>  <h3><a name="gig">13.&nbsp; Building libgig</a></h3>
236    
237  <p>Just use the same commands as you would in linux:</p>  <p>Just use the same commands as you would in linux:</p>
238    
# Line 229  make Line 242  make
242  make install</pre>  make install</pre>
243    
244    
245  <h3><a name="ls">13.&nbsp; Building linuxsampler</a></h3>  <h3><a name="ls">14.&nbsp; Building linuxsampler</a></h3>
246    
247  <pre>make -f Makefile.cvs    (if you build from CVS)  <pre>make -f Makefile.cvs    (if you build from CVS)
248  ./configure --enable-asiosdk-dir=$HOME --enable-vstsdk-dir=$HOME/vstsdk2.4  ./configure --enable-asiosdk-dir=$HOME --enable-vstsdk-dir=$HOME/vstsdk2.4
# Line 237  make Line 250  make
250  make install</pre>  make install</pre>
251    
252    
253  <h3><a name="gigedit">14.&nbsp; Building gigedit</a></h3>  <h3><a name="gigedit">15.&nbsp; Building gigedit</a></h3>
254    
255  <pre>make -f Makefile.cvs    (if you build from CVS)  <pre>make -f Makefile.cvs    (if you build from CVS)
256  ./configure  ./configure

Legend:
Removed from v.1807  
changed lines
  Added in v.1918

  ViewVC Help
Powered by ViewVC