Windows 7 Download and Installation

From KratosWiki
(Difference between revisions)
Jump to: navigation, search
(Install the boost library)
(Replaced content with "The information in this page was moved to GitHub: https://github.com/KratosMultiphysics/Kratos/wiki/Windows-Install")
 
(193 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== Preliminaries: Components needed to install the Kratos==
+
The information in this page was moved to GitHub: https://github.com/KratosMultiphysics/Kratos/wiki/Windows-Install
 
+
::::'''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 [http://msdn.microsoft.com/en-gb/express/default.aspx 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.
+
 
+
=== SVN ===
+
 
+
::It is recommended to use [http://www.rapidsvn.org/ RapidSVN]
+
 
+
::The latest released version: 0.12, October 2009, RapidSVN-0.12.0-8051.exe
+
 
+
::Download and run the file:
+
 
+
::[[Image:RapidSVN.1.jpg]][[Image:RapidSVN.2.jpg]]
+
 
+
=== Kratos Source Code ===
+
 
+
::By using RapidSVN, the kratos source files can be downloaded by taking the following steps:
+
::* Go to <tt> Repository->Checkout </tt> and enter the following path to the kratos repository:  
+
        https://svn.cimne.upc.edu/p/kratos/kratos
+
 
+
::[[Image:RapidSVN.3.jpg]][[Image:RapidSVN.4.jpg]]
+
 
+
::* Choose  a working directory where module: <tt>kratos</tt> 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.
+
 
+
::[[Image:RapidSVN.5.jpg]]
+
 
+
=== Pre and Post Processor. GiD ===
+
 
+
::We use [http://www.gidhome.com '''GiD'''] as our favourite pre and post-processor.
+
 
+
::Download and install the latest version of [http://www.gidhome.com/download/do07.html '''GiD''']. Here we use the latest beta version for 64 bits (GiD9.2.9b-win-x64-Install.exe)
+
 
+
::[[Image:GiDInstall.1.jpg]][[Image:GiDInstall.2.jpg]]
+
 
+
::[[Image:GiDInstall.3.jpg]][[Image:GiDInstall.4.jpg]]
+
 
+
=== Cmake ===
+
 
+
The compilation of the Kratos is now cmake-based. Cmake can be installed in the system download it from
+
http://www.cmake.org/  Cmake 2.8.7
+
 
+
=== Scripting Language Python.  ===
+
 
+
::[http://www.python.org/ Python] can be downloaded from [http://www.python.org/download/ 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 [http://www.boost.org/ 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 [http://www.boost.org/doc/libs/1_42_0/more/getting_started/windows.html 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.''"
+
 
+
::'''For 32 bits machines'''. Download and run [http://www.boostpro.com/download 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
+
 
+
::[[Image:BoostInstall.1.jpg]][[Image:BoostInstall.2.jpg]]
+
 
+
::* select all the components
+
 
+
::[[Image:BoostInstall.3.jpg]][[Image:BoostInstall.4.jpg]]
+
 
+
::* select "'''C:\boost_1_47'''"  as Destination Folder
+
 
+
::[[Image:BoostInstall.9.jpg|294 px]]
+
 
+
::[[Image:BoostInstall.7.jpg]][[Image:BoostInstall.8.jpg]]
+
 
+
::* check that the following specific folders have been created: '''\boost_1_47\lib''' and '''\boost_1_47\bin'''
+
 
+
::[[Image:BoostInstall.10.jpg|400 px]][[Image:BoostInstall.11.jpg|400 px]]
+
 
+
::'''For 64 bits machines'''. You need to manually build the library. Take a look to: http://www.boost.org/doc/libs/1_47_0/more/getting_started/windows.html
+
 
+
::As an example, for a Windows 7, 64 bits version, with python2.7 installed in D:, the steps are the following:
+
::* open a command window
+
::* go to your boost root folder: '''C:\boost_1_47'''
+
::* modify your '''project-config.jam''' file, by adding:
+
::** using mpi ;
+
::** using python : 2.7 : D:\\Python27\\python : : : <address-model>64 ;
+
::* execute: '''b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stage'''
+
::* copy the files from the '''C:\boost_1_47\stage\lib''' folder to the '''C:\boost_1_47\lib''' folder
+
::Take care with the '''compatibility between boost, the python and MS Visual Studio versions'''!
+
 
+
=== Environment variables ===
+
 
+
::* Check your environment variables (Control Panel->System and Security->System->Advanced System Settings)
+
::[[Image:Boost-Build_Install.3.jpg]]
+
 
+
::[[Image:Boost-Build_Install.4.jpg]][[Image:Boost-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:
+
 
+
http://www.fi.muni.cz/~xsvobod2/misc/lapack/
+
 
+
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.
+
 
+
 
+
 
+
::[[Image:configuresss.png]]
+
 
+
=== 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.
+
 
+
::[[Image:cmake1ff.png]]
+
 
+
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.
+
 
+
[[File:ffddd.png]]
+
 
+
b) Click with the right botton over the ALL_BUILD and select PROPERTIES
+
 
+
Note: see bellow picture.
+
 
+
[[File:fffddd.png]]
+
 
+
c)Finally, select the botton corresponding CONFIGUTARION MANAGER and select INSTALL
+
 
+
Note: see above picture.
+
 
+
=== Compilation Kratos ===
+
 
+
::* Please, select Build - Build Solution
+
 
+
::[[Image:MSVS2008_Compile_Kratos.1.jpg]]
+
 
+
[[Category: Installation]]
+

Latest revision as of 08:39, 2 July 2018

The information in this page was moved to GitHub: https://github.com/KratosMultiphysics/Kratos/wiki/Windows-Install

Personal tools
Categories