artm / WatchThatSound

Educational soundtrack authoring software for Watch That Sound workshops
http://www.watchthatsound.nl/
Other
3 stars 4 forks source link

Watch That Sound workshops tool

Description: TODO

Building

Windows

WTS3's official build environment is QtCreator + MinGW/MSYS.

Prerequisites

Source tree and building prerequisites

My source tree looks like:

I build the prerequisites in MSYS command prompt like:

cd portaudio
PATH=/bin:/mingw/bin ./configure --disable-shared --enable-static
make
cd ..

cd ffmpeg
PATH=/bin:/mingw/bin ./configure \
     --disable-doc \
     --disable-ffmpeg \
     --disable-ffplay \
     --disable-ffprobe \
     --disable-ffserver \
     --disable-avdevice \
     --disable-avfilter \
     --disable-network \
     --disable-pthreads \
     --disable-yasm
make
cd ..

We could probably disable more to speed up building, but we don't.

It is possible to build portaudio with alternative backend, e.g. DirectSound. This requires different configure command:

CFLAGS='-DWINVER=0x0501' PATH=/bin:/mingw/bin ./configure \
       --disable-shared --enable-static \
       --with-winapi=wmme,directx \
       --with-dxdir=../dx9mgw

The above command assumes that you have Direct x SDKfor mingw in dx9mgw directory under the source root. The SDK can be downloaded from http://trent.gamblin.ca/dx/dx9mgw.zip

Preparing the QtCreator

As mentioned above, current version of QtCreator (QtSDK 1.1.3 at the moment of writing) comes with broken MinGW (todo: link to stackoverflow discussion). To be able to use alternative MinGW we need to configure QtCreator first.

  1. Install MinGW 4.5 (did it already to build prerequisites)
  2. Add it as available toolchain to QtCreator
  3. Configure the project to use this toolchain

Further, it is necessary to make sure that MSYS tools are available in the build environment: the path c:\MinGW\msys\1.0\bin has to be prepended to the build PATH.