OpenFOAM® MinGW cross-compilation

OpenFOAM®  MinGW cross-compilation

Installing the cross-compiled OpenFOAM package is the easiest method to obtain the latest OpenFOAM version on Microsoft Windows systems, requiring no virtualization of any kind.

The package has been built in the OpenSUSE environment using the MinGW cross-compiler, and can be installed (source code and binaries) in a specified directory. Applications are directly executable and accessible from a Windows terminal (cmd) or, preferably, via the MSYS2 terminal (part of the OpenFOAM installation) which offers the power of Linux command line tools.

To post-process simulation results users are advised to install the Windows version of ParaView. Similarly, other graphical tools such as Gnuplot should be installed separately.


  • The latest Windows MinGW download is available here
  • For more information on the mingw environment please refer to the following link
  • This version does not support compilation of OpenFOAM or dynamic code
  • The MSYS2 terminal has many utilities installed, e.g.: vim, tmux, mc, tree and nano
  • Additional programs can be installed using the Pacman package manager. For more information see
  • For windows users who wish to use the cmd or MS-Dos command prompt, a bat file ”OpenFOAM-MS-DOS Prompt.bat” is provided to set the OpenFOAM working environment.
  • The installer can be run directly under user mode or by right-clicking over it and selecting ”run as administrator”. Running in administrator mode allows users to install MSMPI 10.0 which is required to run OpenFOAM binaries in parallel.
  • MSMPI 10.0 can be installed separately (before or after the main installation) and can be downloaded from here.