Building DCP-o-matic for Windows

DCP-o-matic for Windows is built using MXE on Linux. This page gives some brief tips on how do it yourself.

Host dependencies

For Debian, you need a few packages to be installed:

apt-get install autoconf automake autopoint bash bison bzip2 flex gettext git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev libtool-bin libltdl-dev libssl-dev libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby scons sed unzip wget xz-utils g++-multilib libc6-dev-i386

MXE

MXE is an environment which includes a toolchain and some dependencies. We need a few small patches to build DCP-o-matic, so download my patched version and build it:

git clone git://git.carlh.net/git/mxe.git
cd mxe
make

to build everything.

Building DCP-o-matic

The final step is to build DCP-o-matic itself. For this I use a python script which I wrote, called cdist. Download it using

git clone git://git.carlh.net/git/cdist.git

then copy the cdist script somewhere onto your path (e.g. /usr/local/bin).

cdist needs a file ~/.config/cdist which should contain something like:

git_prefix git://git.carlh.net/git/
mxe_prefix /path/to/mxe/directory

Once you have done this,

cdist -p dcpomatic -t windows-64 package

should build a Windows installer of DCP-o-matic for 64-bit.