This document describes how to install
TFEL/MFront on Windows plateform using MingGW and
The main difficulty associated with building
TFEL/MFront on Windows plateform is the lack of an unified build environment which must be set up by the user. We suppose that you want to build
TFEL/MFront on top of the
Cast3M finite element solver which comes with its own software environment based on
MSYS is a collection of GNU utilities, in particular
make which is used by
MFront. It also provides a convenient shell which is far more easier to use than the
DOS terminal provided by the
We will use the
mingw-get-setup.exe program that can be grabbed here.
Installing MSYS is a \(3\) steps process depicted on the following figures~:
This first step allows you to choose the installation directory of MSYS. The default installation path is
The second windows appears while
mingw-get-setup.exe downloads the latest list of packages. Just click on
Continue once finished.
The third windows allows you to select the components to be installed. The only one required for
MFront is the
Once the components are selected, choose
Apply Changes in the
Installation menu and click on
OK to launch the components installation.
Once done, the
msys.bat script launches a shell which is very similar to standard UNiX shells.
MSYS has been installed in
C:\MinGW, the user directory is located here:
This allows easy exchange of file between the Windows world and the
MSYS, one can access most Windows files through the
$ ls /c/ MinGW Program Files users windows
cmake project provides a graphical installer on its website.
At the end of the compilation process, we will create a graphical installer based on
NSIS which can be grabbed here.
TFEL is merely a simple as opening a new
MSYS session and following the instructions given on the main installation page.
The main differences are that one must:
PATHenvironment variable, the path to were
Cast3Mhas installed the
cmaketo generate appropriate
Makefilesfor the `NSIS``build environment.
$ export PATH=/c/Cast3M/PCW_14/MinGW/x32-4.6.3-posix-dwarf-rev2/mingw/bin/:$PATH $ cmake -G "MSYS Makefiles" [path to TFEL sources] [options] $ make $ cpack -G "NSIS"
An executable called
tfel-.. has been build and can be executed to install
This executable is a standard graphical installer which allows you to choose which components of
TFEL you wish to install:
MFrontcode generator and
docscontains the documentation in
The installer also allows you to choose where
TFEL shall be installed:
TFEL must be installed in a path without blanks, for example in the directory
We strongly advice the user to create or modify its
.profile file in its home directory in the
MSYS environment to get the
MinGW compilers provided by
Cast3M in the path by appending the following lines:
export PATH=/c/Cast3M/PCW_14/MinGW/x32-4.6.3-posix-dwarf-rev2/mingw/bin/:$PATH export PATH:/c/Cast3M/PCW_14/bin/:$PATH alias castem='cmd //c castem14.bat'
Assuming a standard
MSYS environment, the file is located here:
Once done, mfront can be used as "usual" (like in Posix environments) in MSYS.