Windows 7 Download and Installation

From KratosWiki
Revision as of 11:25, 29 March 2010 by JMora (Talk | contribs)
Jump to: navigation, search


Preliminaries: Components needed to install the Kratos

Last visit for the links: 28 March 2010

Note that this is a specific case of possible installation of Kratos in a 64 bits computer under Windows 7, and all the different components are not compulsory for the successful use of Kratos. You can select other equivalent C++ compilers, svn, etc. or other versions of those we are presenting.

C++ compiler. Microsoft Visual Studio 2008

For developers using Windows, we recommend to use Microsoft Visual Studio 2005 or 2008. If you are working with a 64 bits machine, be sure that you include the 64 bits tools in your MSVS installation.


It is recommended to use RapidSVN

The latest released version: 0.12, October 2009, RapidSVN-0.12.0-8051.exe

Download and run the file:


Kratos Source Code

By using RapidSVN, the kratos source files can be downloaded by taking the following steps:

  • Go to Repository->Checkout and enter the following path to the kratos repository:


  • Choose a working directory where module: kratos will be created in your pc
    • for example: "C:\Kratos2010"
    • for example: "D:"
  • "recursive" option have to be signed
  • this will create a folder "C:\Kratos2010\kratos" or "D:\kratos" with all the required Kratos files.


Pre and Post Processor. GiD

We use GiD as our favourite pre and post-processor.

Download and install the latest version of GiD. Here we use the latest beta version for 64 bits (GiD9.2.9b-win-x64-Install.exe)



You should have to install the GiDpost External Library too (latest version, March 2010,


Python can be downloaded from here. At this moment the python 2.5 is supported.

After install it is needed to include the installation directory in the system path: control panel -> system -> advanced

Before installing Python, consider if you want to use it to plot graphics. In that case, you should check packages (python(x,y), for example) which include matplotlib or other equivalent graphic tools.

C++ Compiler

For developers using Windows, we recommend to use Microsoft Visual Studio 2005

Limited testing has been performed with Microsoft Visual Studio 2008 Express Edition freely available from Microsoft. To use Microsoft Visual Studio 2008 Express Edition, you must download Boost 1.35.0 sources, Boost build and bjam executable. You should compile Boost sources with the command:

 bjam toolset=msvc --build-type=complete stage

and correct the paths in Jamroot file.

Also, in Jamroot, the last lines should look like this:

## installation
alias install :
#		/kratos-prj/ExternalSolversApplication//install
#		/kratos-prj/FSIapplication//install


Boost Library

Kratos uses the Boost library.

Boost provides free peer-reviewed portable C++ source libraries.

Step1 - Install the building system

The compilation of both the Kratos and the Boost-library is performed using bjam which is a portable "make" like system and manages the compilation. Bjam has configuration files for many different compilers. This configuration files are contained in the "boost-build".

The following steps are needed to install the build system:

  • Downlodad precompiled bjam for windows (see -> getting started).
  • Put the bjam.exe in c:\kratosR1 (from now on we will assume that the Kratos is installed in c:\kratosR1 ... do not change this unless you know what you do)
  • Download the latest release of the boost-build from Download section and extract for example in the directory "c:\boost-build\"
  • Configure the environment variable (Control Panel->System->Advanced) BOOST_BUILD_PATH=c:\boost-build (set it to the installation path you choosed for boost-build).

Step2 - Install the boost library

The Kratos needs the boost library to be installed in the system. This implies that both the source files and the compiled libraries should be available on the system.

An "easy" way exists to install boost library under windows 32bit:

You can get the setup file from Boost Consulting. The setup file ask you about the components you want to install and the compiler and path to install:

  1. Select the mirror you want. (the random mirror works fine for me)
  2. Select:
    1. the multithread DLL and multithread debug DLL
  3. do a FULL install. Verify that everything is marked!
  4. Introduce the installing path. (i.e C:\kratosR1\external_libraries\boost_1_34_1\) DO NOT change this path unless you know what you do
  5. include the installation path for the compiled dlls in the system path: (control panel->system->advanced ...................)

NOTE: These binaries are compiled for 32bit machines. In order to compile 64bit code (on windows 64bit) you MUST recompile the boost python library by going to the boost directory and recompile the boost python using bjam:

   bjam --toolset=msvc --libdir=lib python

Another option for the installation of the boost library is to install the source code and compile it as follows: (do this as an extreme resource ... the only way we can support is the first)

  1. Go to the Download section
  2. Download the following libraries:
    1. boost (last release in this moment of edition: 1.34.1, July 24, 2007,
      • to be extracted in \kratosR1\external_libraries once kratos source code is installed
  3. compile and install the libraries

Kratos Source code

In this moment kratos source files can be downloaded using CVS. Using WinCvs the precedure consists of:

  1. open the Menu->Admin->Login and insert the following CVSROOT :

where user_name is your user name (which can be obtained contacting to Pooyan) or anonymous for readonly access.

  1. Login using your password (empty for anonymous username)
  2. Open the Menu->Remote->CheckoutModule
    1. Module name: kratosR1
    2. Local folder: the folder you want to copy your Kratos directory. (the default C:\ is fine)
    3. Choose the same CVSROOT as for login and press OK.

It's important to finish all these steps with ***** CVS exited normally with code 0 *****

GiDpost External Library

We strongly recommend you to use GiD as a pre and post processor.

gidpost is a set of functions (library) for writing postprocess results for GiD in ASCII or binary format.

  1. Go to the library description
  2. Download the zip file
  3. Unzip the file in your_kratos_path\external_libraries\
  4. Open a DOS console
  5. Change to the "gidpost\win" directory
  6. Run vcvars32.bat
  7. And depending on the version you want to compile (probably both of them) invoke:
 nmake -f CFG="Release"
 nmake -f CFG="Debug"

Compiling Kratos

  1. Copy the Common_Jamroot to Jamroot
  2. In the folder KratosR1 copy Common_Jamroot to Jamroot and then open it with a text editor: select and customize the parts marked as WINDOWS INSTALLATION

Finally compiling the Kratos using bjam

   bjam toolset=msvc threading=multi -j2

the "-j2" flag is to compile using 2 processors. Omitting it implies compiling with a single processor. "-jN" to compile with N processors

Visual Studio Project

A simple interface for the compilation using Microsoft Visual Studio 2005 is provided at the link:


To use it simply download the file and unpack it in the directory "kratosR1". The file treats the bjam as a makefile and allows compiling inside the visual studio environment

Personal tools