Compiling Elmer on Windows with g95

From Elmer Wiki
Revision as of 19:20, 31 January 2013 by Raback (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

These instructions are probably outdated. They have once worked on a Windows XP system running MinGW.

  • Install MinGW and MSYS in c:\MinGW and c:\MSYS, respectively:
    • Run MinGW-5.1.3.exe. Choose all components to install.
    • Run the installer MSYS-1.0.10.exe
    • casino
    • Run the installer msysDTK-1.0.1.exe
    • The installers are available from this link
  • Install g95 for MinGW:
    • Run g95-MinGW.exe
    • The installer is available from
  • Download Elmer-sources from svn (if you don't have a command line svn client installed, you can use the TortoiseSVN client instead):
$ svn checkout elmerfem
$ cd elmerfem/trunk
  • Create a file
export ELMER_HOME=/c/Elmer5.4
export CC=gcc
export CXX=g++
export FC=g95
export F77=g95
export LDFLAGS="-L/mingw/lib/gcc/mingw32/3.4.5/ -Xlinker --stack=1000000000 "
modules="matc umfpack mathlibs elmergrid meshgen2d eio hutiter fem"
for m in $modules; do
cd $m
./configure --prefix=$ELMER_HOME
make install
cd ..
  • Run the script from a MSYS shell:
$ .