Installation under Windows

Mini How-to for the installation of Ulambator under Windows :

1. Download Visual Studio community edition
         a) Make sure to select Programming language > Visual C++
         b) The rest is not relevant and can be unselected
2. Download and install Mingw : http://tdm-gcc.tdragon.net/
         a) Select all components
         b) Put the TDM-GCC\bin path to system path :
         c) Right click on computer => properties
         d) Go to Advanced system properties
         e) Go to  Environment variable
         f) Modify or create the variable “PATH” and add the path of the “TDM-GCC-64\bin” (c:\TDM-GCC-64\bin or equivalent)
          f) If there was already something in the “PATH”, separate them by “;”
3. Download BLAS and LAPACK precompiled library : http://icl.cs.utk.edu/lapack-for-windows/lapack/#libraries_mingw
          a) Download the 32 bit package and put it to a desired folder;
          b) Add this path to the system path as described above;
          c) (it is easier for the moment to use the 32 bit version)
4. Download Ulambator
5. Launch Visual Studio
          a) Create A new project
                 i.) Go to File>>New>Project
                 ii.) Model>>Visual C++>Win32>> Win32 project
                 iii.) Select the Path and Name>>Ok
                 iv.) Press Next
                 v.) Select Console application and empty project > finish
                 vi.) Extract the source code of Ulambator in the PATH
          b) Add the source file to the project :
               i.) Right click to source file>>add>>existing element
               ii.) Select all the .cpp in the “source” folder
               iii.) Do the same for one tutorial file in the “tutorial” folder
          c) Add the header to the project :
               i.) Right click to header file>>add>>existing element
               ii.) Select all the .h in the “source” folder
          d) Choose “Release” and x86 as a target in the top bar
          e) Modify the properties of the project :
               i.) Right click on your project name>>properties
               ii.) In C/C++>>General>>
                    – Other include folder: add the folder where you store BLAS and LAPACK library
                    – SDL verification : put it at NO
                    – Multiprocessor build : YES
               iii.) In C/C++>>Optimisation>>
                    – Optimise the whole programm : NO
               iv.) In C/C++>>Language>>
                    – OpenMP support : Yes
               v.) In Link edition>>General
                    – Other include folder: add the folder where you store BLAS and LAPACK library
               v.) In Link edition>>Input
                    – Supplémentary dependency : add  libblas.lib;liblapack.lib
               vi.) In Link edition>>command line
                    -Add /FORCE:MULTIPLE
          f) Click on Build >> Build solution in order to build the executable

 

That should do it and allow to compile and run Ulambator.


This introduction has been elaborated by Youen Vitry at Université Libre de Bruxelles in Belgium.