Build TeXmacs use MXE on debian sid

This doc aims to be a guide for developers not for users. We are talking about building but not packaging.

Download MXE

Build TeXmacs dependencies in MXE

make cc
make cmake
make qtbase
make libpng
make guile
make freetype

Build TeXmacs

mkdir build && cd build/
$HOME/github/mxe/mxe/usr/bin/i686-w64-mingw32.static-cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/win
make -j8 && make install -j8

Copy the win/ dir to Windows (copy the ice-9 dir from an existing TeXmacs install), and click texmacs.exe under win/bin will launch a GNU TeXmacs on Windows in debug mode (with the logging cmd console).