======New Window Build Environment======
Base on:
* http://mingw-w64.org/
* http://msys2.org/
NOTE: Latest versions doesn't support Windows XP, use 20150916 instead.
* http://repo.msys2.org/distrib/
* [[http://repo.msys2.org/distrib/i686/msys2-i686-20150916.exe|msys2-i686-20150916.exe]] ([[http://www.aasimon.org/public/msys-dist/msys2-i686-20150916.exe|mirror]]) works on Windows XP. //Do not upgrade base system or it will break...//
Install compiler:
* For 32-bit: ''pacman -S mingw-w64-i686-gcc''
* For 64-bit: ''pacman -S mingw-w64-x86_64-gcc''
**Prepend** (depending on which mingw installed):
c:\msys32\mingw32\bin;c:\msys32\usr\bin
or
c:\msys64\mingw64\bin;c:\msys64\usr\bin
to ''PATH'' in windows:\\
Right-click My Computer -> Properties -> Advanced ->Environment Variables.
Install autotools and make:
* ''pacman -S automake autoconf libtool make''
Install git, pkg-config and wget:
* ''pacman -S git pkgconfig wget''
=====Compile missing packages=====
Install dependencies from sources...
====LibeXpat====
NO LONGER NEEDED!
cd /usr/src
wget http://prdownloads.sourceforge.net/expat/expat-2.2.0.tar.bz2
tar xvjf expat-2.2.0.tar.bz2
cd expat-2.2.0/
./configure --prefix=/usr
rm /usr/bin/xmlwf
make install
====Libsndfile====
cd /usr/src
wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz
tar xvzf libsndfile-1.0.28.tar.gz
cd libsndfile-1.0.28
./configure --prefix=/usr
# Edit src/file_io.c and comment out the line with ''S_ISSOCK'' as it results in an "undefefined reference to" error at link time.
make install
====Zita resampler===
NO LONGER NEEDED!
cd /usr/src
wget http://www.aasimon.org/public/msys-dist/zr-autotools-1.0.0.tar.gz
tar xvzf zr-autotools-1.0.0.tar.gz
wget http://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-resampler-1.6.0.tar.bz2
tar xvjf zita-resampler-1.6.0.tar.bz2
cd zr-autotools-1.0.0
./configure --prefix=/usr --with-zita-sources=/usr/src/zita-resampler-1.6.0
make install
(cd /usr/lib; cp libzita-resampler.a libzita-resampler.dll.a)
====CppUnit====
NO LONGER NEEDED!
cd /usr/src
wget http://dev-www.libreoffice.org/src/cppunit-1.14.0.tar.gz
tar xvzf cppunit-1.14.0.tar.gz
cd cppunit-1.14.0
./configure --prefix=/usr --disable-werror
make install
=====Compile DrumGizmo=====
ZITA_LDFLAGS=-L/usr/lib ZITA_CPPFLAGS=-I/usr/include \
./configure --disable-cli --disable-lv2 --enable-vst --with-test
Old:
CPPUNIT_CPPFLAGS=-I/usr/include \
EXPAT_LDFLAGS=-L/usr/lib EXPAT_CFLAGS=-I/usr/include \
ZITA_LDFLAGS=-L/usr/lib ZITA_CPPFLAGS=-I/usr/include \
./configure --disable-cli --disable-lv2 --disable-vst \
--enable-resampler=zita --with-test
=====Use Microsoft C Compiler through AutoTools=====
* http://landinghub.visualstudio.com/visual-cpp-build-tools
* https://github.com/swig/cccl