I recently needed to cross-compile Dn-FamiTracker on Linux for Windows and I successfully managed to do that. So I decided to document the process in this blog post for anybody who wants to do the same in the future.

Because of the nature of the problem the information in this blog post will be outdated. Things change. So you gotta be prepared to adapt to your current environment. What's important is not the specific list of actions (otherwise this blog post would've been a bash script), but the understanding of what we are doing.

MSVC in Wine

Dn-FamiTracker heavily depends on MSVC. It even uses MFC as its major UI framework. Luckily there is an awesome project mstorsjo/msvc-wine which can help to run all this Microsoft craziness in Wine.