Windows 7 Download and Installation

From KratosWiki
Revision as of 10:25, 31 May 2012 by JMora (Talk | contribs)
Jump to: navigation, search


Preliminaries: Components needed to install the Kratos

Last visit for the links: 28 March 2012
Note that this is a specific case of possible installation of Kratos in 32 bits 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. If you are running a 64 bit machine it will also work. To keep the instalation process easy here is only described the 32 bit installation. It is also possible to do the 64 bit installation, but you will have to compile the Boost library yourself since its Installer is only for the 32 bit version.
Two examples of organization of files are provided. Of course, you should select only one of them.

C++ compiler. Microsoft Visual Studio 2010

For developers using Windows, we recommend to use Microsoft Visual Studio 2010. 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
    • example A: "C:\Kratos2010"
    • example B: "D:\Kratos2010"
Warning! Avoid using the root directory if you need to commit files to the SVN.
  • "recursive" option have to be signed
  • this will create a folder "C:\Kratos2010\kratos" or "D:\Kratos2010\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)


The compilation of the Kratos is now cmake-based. Cmake can be installed in the system download it from Cmake 2.8.7

Scripting Language Python.

Python can be downloaded from here. At this moment the python Python 2.7.2 is supported.
After the installation, you should check that Python has created a folder called "C:\Python27\libs" or "D:\Python27\libs".

Boost Library

Kratos uses the Boost library.
Boost provides free peer-reviewed portable C++ source libraries.

Install the boost library

You can install and build manually the boost library or you can directly use an installer. As said in the boost webpage: "The easiest way to get a copy of Boost is to use an installer. The Boost website version of this Getting Started guide will have undated information on installers as they become available, or see Boost downloads or the installer provided by BoostPro Computing. We especially recommend using an installer if you use Microsoft Visual Studio, because the installer can download and install precompiled library binaries, saving you the trouble of building them yourself."
Download and run BoostPro Installer (latest version 1.47.0, March 2012). You should register to freely download the file.
  • select Visual C++ 10.0 (Microsoft Visual Studio 2010) and all the variants
  • select all the components
  • select "C:\boost_1_47" as Destination Folder
  • check that the following specific folders have been created: \boost_1_47\lib and \boost_1_47\bin

Environment variables

  • Check your environment variables (Control Panel->System and Security->System->Advanced System Settings)
Boost-Build Install.3.jpg
Boost-Build Install.4.jpgBoost-Build Install.5.jpg
  • Define the following variables:
      Internal variables 
      PATH			 C:\boost_1_47;C:\boost_1_47\lib
      PYTHONPATH		 C:\Kratos2010; C:\Kratos2010\libs

      System Variable
      BOOST_ROOT 		C:\boost_1_47
      BOOST_Build_PATH 	C:\boost_1_47
      BOOST_LIBRARYDIR	        C:\boost_1_47\lib;
      Path 			C:\python27;C:\boost_1_47;C:\boost_1_47\lib
      PYTHON_PATH 	        C:\Kratos2010;C:\python27
      Python27  		C:\python27

Once you have done this, you'll be able to run python from any directory by simply typing "python" in the console instead of its full instalation path.

Lapack library for External Solver Application

For win32 platform the binaries which are compatible with MSVC can be downloaded from:

Note that the netlib version cannot be compiled with MSVC.

Compiling Kratos

Customize configure.bat

  • In the Kratos root folder ("C:\Kratos2010\cmake_build") copy the example_configure.bat.do_not_touch to configure.bat . Check if the path of boost and external library are correct and see if the aplication that you will use to be switch on.


Running configure.bat

Finally run configure.bat and if all is correct, the file ALL_BUILD.vcxproj will be generated.

It is convenient to run it in a console (START->RUN and type "cmd"). This way the console will not close once it has finished configuring and therefore you can check everything is ok.


Note: Check that the Python and Boost's version are correct together with the path.

Microsoft Visual Studio 2010 Kratos Project

Open the file ALL_BUILD.vcxproj with Visual Studio 2010 and now is the turn to compile Kratos. Once inside in Visual Studio 2010, it is neccesary to follow the following steps

a) go to -> View -> Property Manager ->

Note: see bellow picture.


b) Click with the right botton over the ALL_BUILD and select PROPERTIES

Note: see bellow picture.


c)Finally, select the botton corresponding CONFIGUTARION MANAGER and select INSTALL

Note: see above picture.

Compilation Kratos

  • Please, select Build - Build Solution
MSVS2008 Compile Kratos.1.jpg
Personal tools