Installation¶
Installation options¶
- Official stable releases (http://www.oofem.org/en/download)
Usually 12M release cycle
Binary packages for Windows (AMD64 version only) and Linux (x86_64 version, Debian package)
Source package (requires compilation)
- Development version
Manual installation from OOFEM GitHub repository (https://github.com/oofem/oofem.git)
Binary package installation - Windows¶
Extract downloaded zip archive (oofem_2.5_AMD64.zip) into any directory
The extraction should create oofem_2.5_AMD64 directory
Modify PATH variable to include oofem_2.5_AMD64/lib dir
set PATH=C:\Users\user\Documents\oofem_2.5_AMD64\lib;%PATH%
Test run
C:\Users\user\Documents\oofem_2.5_AMD64\bin\oofem -v OOFEM version 2.5 (AMD64-Windows, fm;tm;sm;IML++) of Dec 30 2017 on JAJA Copyright (C) 1994-2017 Borek Patzak This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Binary installation – Unix/Linux¶
You can either choose generic Linux binary or Debian package.
Linux – binary¶
Extract downloaded zip archive (oofem_2.5_x86.tar.gz) .. code-block:: bash
tr xzvf oofem_2.5_x86.tar.gz
This creates oofem_2.5_x86_64/bin and oofem_2.5_x86_64/bin directories
- Define where to find libraries
$ export LDD_LIBRARY_PATH=../lib:$LDD_LIBRARY_PATH
- Run oofem
$ cd bin; ./oofem –v
Linux – Debian package¶
$ sudo apt install oofem_2.5_x86_64.deb
Installation from source¶
Requirements
C++ compiler (g++, Visual Studio, MinGW, …)
CMake build tools (https://cmake.org/)
Controls software compilation process by using platform independent configuration and generate native makefiles or projects
To generate platform makefile or project configuration, use
cmake
(or any user friendly based GUI, such as ccmake or cmake-gui)
Instalation from source - Linux¶
In the following, we assume the sources are in /home/user/oofem.src and build directory in /home/user/oofem.build
$ cd /home/user/oofem.build
$ ccmake /home/user/oofem.src
$ make
Installation from source - Windows¶
Requirements:
C++ compiler (Visual Studio, MinGW)
CMake build tools (https://cmake.org/)
Procedure: