WTS3's official build environment is QtCreator + MinGW/MSYS.
sed
and mv
command line utilities that
aren't supplied with the QtSDK. At the moment this means we need e.g.
MSYS on WindowsMy source tree looks like:
WTS3
- sources root, contains prerequisites and our own sources
portaudio
ffmpeg
WatchThatSound
- our repository clone, name doesn't really matterI 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
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.
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.