New Window Build Environment

Base on:

NOTE: Latest versions doesn't support Windows XP, use 20150916 instead.

Install compiler:

  • For 32-bit: pacman -S mingw-w64-i686-gcc
  • For 64-bit: pacman -S mingw-w64-x86_64-gcc

Append c:\msys32\mingw32\bin;c:\msys32\usr\bin or c:\msys64\mingw64\bin;c:\msys64\usr\bin (depending on which mingw installed) 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

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

dev/new_windows_build_environment.txt · Last modified: 2018/10/07 20:09 by deva
Trace: new_windows_build_environment
GNU Free Documentation License 1.3
Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0