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).

The thread is used as a record of my exploration.

Here is a well-organized version of building GNU TeXmacs using MXE:
https://texmacs.github.io/notes/docs/build-using-cmake-and-mxe-on-wsl.html

2 Likes