Programming‎ > ‎MPS Bundle‎ > ‎

MPS Bundle installation in Windows

Building in Windows is relatively complicated because its compilers and libraries are rather different, and also because it lacks several tools that have to be installed separately. Before proceeding you have to install the following software:
  1. Install Microsoft Visual Studio Express for Desktop, which is a native compiler for Windows that ships with a C++ compiler and all the basic C, C++ and Windows API libraries. Available here.
  2. Install some version of 'git'. The site github has one version but I recommend installing instead Cygwin. If you can, use the 64 bit version, and install at least the package 'git' and 'make', though 'ssh', 'rsync' and other tools might be interesting if you wish to upload your software to clusters.
For software development I also recommend installing Emacs, which integrates nicely with both cygwin and the MSVC compiler, and for which there are instructions also in this page.

General instructions

Once this software is installed, I recommend following these steps:
  1. Click on the "cygwin terminal" icon and type on it
    $ git clone
  2. This will create a directory called mps-bundle. Enter it and download the rest of the software
    $ make cblapack
    $ make update
  3. You can now exit the Cygwin terminal. It will only be needed when you need to update the software, using make update from the same directory.
  4. Now it is time to open a Microsoft compiler terminal. Go to the "Start" page of Windows and search for "Visual Studio tools". If your computer is 64-bit, open "VS2013 x64 Tools..." while if your computer is 32 bit, you have to use "VS2013 x86 Tools..." Both of them open terminals where you can compile software.
  5. Verify that the software has been properly installed
    $ cd c:/cygwin64/home/JuanJose/mps-bundle/msvc
    $ nmake
    c:\cygwin64\home\JuanJose\mps-bundle\msvc>nmake /
    Utilidad de mantenimiento de programas de Microsoft (R) versión 12.00.21005.1
    (C) Microsoft Corporation. Reservados todos los derechos.
    Uso:  NMAKE @commandfile
  6. From within the terminal, move to the directory where mps-bundle is placed. To make sure you know where it is, open the explorer and look for the "home" directory within "c:/cygwin" or "c:/cygwin64". In my computer, my user name is JuanJose and the directory is "c:/cygwin64/home/JuanJose" so that the bundle is placed in "c:/cygwin64/home/JuanJose/mps-bundle"
  7. Now you can move there and build your software:
    $ cd c:/cygwin64/home/JuanJose/mps-bundle/msvc
    $ nmake

 Make your life easier

If you want to rely on Windows for developing and testing software (I personally do, because my laptop runs Windows), it would be convenient to make your system a bit more Unix-like. Some hints:
  • Make cygwin available for the whole system. You can do this by adding c:/cygwin64/bin or c:/cygwin/bin (depends on your installation) to the PATH environment variable. This can be done through "Configuration" -> "Control Panel". In the search box type "environment" and you will be presented with two options. Choose "Edit environment variables for this account" and append one of the paths above to the "Path" box.
  • Make your cygwin home directory available for your Microsoft compiler terminal. For that, create, through the same method as before, an environment variable called HOME that points to the cygwin home directory. This way, from the Microsoft compiler terminal you can simply write "cd %HOME%/mps-bundle/msvc" and start working.
  • Install Emacs for Windows. It is useful for editing the files and also for latex and other stuff. In this case you may even be able to open a terminal for building mps-bundle from within Emacs and cut & paste stuff to and from this terminal.