From 0687c7a6947eab0c1e427e841779bfaad151c46f Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 31 Jan 2015 14:09:42 +0100 Subject: [PATCH] INSTALL.mingw32: add script to cross compile with mingw32 --- INSTALL.mingw32 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 INSTALL.mingw32 diff --git a/INSTALL.mingw32 b/INSTALL.mingw32 new file mode 100644 index 0000000..c0e5719 --- /dev/null +++ b/INSTALL.mingw32 @@ -0,0 +1,32 @@ +#! /bin/sh + +# cross compile vamp-aubio-plugins using mingw32 toolchain + +# get Vamp SDK +curl -O https://code.soundsoftware.ac.uk/attachments/download/690/vamp-plugin-sdk-2.5.tar.gz +tar xf vamp-plugin-sdk-2.5.tar.gz + +# get Vamp windows binaries +curl -O https://code.soundsoftware.ac.uk/attachments/download/694/vamp-plugin-sdk-2.5-binaries-win32-mingw.zip +unzip -x vamp-plugin-sdk-2.5-binaries-win32-mingw.zip + +# build aubio +git clone git://git.aubio.org/git/aubio/ aubio-mingw32 +pushd aubio-mingw32 +git co develop +git pull +CFLAGS="-Os" CC=i586-mingw32msvc-gcc ./waf distclean configure build install \ + --destdir=../aubio-dist-mingw32 --testcmd="echo %s" \ + --with-target-platform=win32 --disable-avcodec --disable-samplerate \ + --disable-jack --disable-sndfile +popd + +# build vamp-aubio-plugins + +git clone git://git.aubio.org/git/vamp-aubio-plugins/ vamp-aubio-plugins-mingw32 +pushd vamp-aubio-plugins-mingw32 + +git co develop +git pull + +make -f Makefile.mingw32 clean all -- 2.11.0