Changeset 11555


Ignore:
Timestamp:
02/27/12 16:13:57 (13 years ago)
Author:
Eric.Larour
Message:

Instructions for Windows install

Location:
issm/trunk-jpl/externalpackages/windows
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/windows/InstallInstructions.txt

    r11553 r11555  
     1Win7:
     2-Be sure to use an account name that does not have spaces in it, as this could be an
     3issue with Cygwin.
     4
     5
    16Installing Matlab:
    27
     
    813as this will need to be reflected onto the sdk compiler settings.
    914
    10 Win7:
    11 -Be sure to use an account name that does not have spaces in it, as this could be an
    12 issue with Cygwin.
    1315
    1416
     
    2123
    2224-You will find the cygwin setup executable on the www.cygwin.com webpage. Here is a link
    23 to it: http://cygwin.com/setup.exe. Download this file to C:\cygwin and be sure to reuse
     25to it: http://cygwin.com/setup.exe. Download this file to C:\Cygwin and be sure to reuse
    2426it when you want to update your current cygwin installation. Do not download setup.exe
    2527twice!
     
    3234automake
    3335vim (or any other editor)
     36patchutils
     37make: The GNU version of the 'make' utility
     38automake 1.11 and automake:Wrapper scripts
     39autoconf
     40python: Python language interpreter
     41unzip
    3442
    3543
     
    3745Compiler:
    3846
    39 you will need the Windows SDK 7.1 compiler, which you can find at the following link
     47You need Visual Studio Express 2010 for C++, which you can find here:
     48http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express
     49
     50you will also need the Windows SDK 7.1 compiler, which you can find at the following link
    4051http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8279
    4152This compiler is compatible with Matlab, as detailed in the following webpage:
    4253http://www.mathworks.com/support/compilers/R2011b/win64.html#n2
     54
     55Be careful not to download the sdk before Visual Studio Express, as this could lead to
     56environment setup issues.
     57
     58
     59Before you do anything related to ISSM! You have to capture the settings of your compiler.
     60This is by far the most tricky part.
     61
     62Follow Figure 2 for more details. You have to launch sdk 7.1 command prompt, go to the
     63cygwin directory and fire up Cygwin by executing Cygwin.bat. Once this is done,dump the
     64results of the export command onto a file, called  sdk7.1.win7.64.sh
     65you will need this file later in the ISSM install.
     66
    4367
    4468
     
    5175cd /cygdrive/c/
    5276svn co http://issm.ess.uci.edi/svn/issm/issm
     77
     78Once you download it, in your home directory, edit .bashrc:
     79and add the following lines:
     80export ISSM_DIR=/cygdrive/c/issm
     81export ISSM_TIER=$ISSM_DIR/trunk-jpl
     82export ISSM_ARCH=cygwin-intel
     83
     84#source
     85source $ISSM_TIER/etc/environment.sh
     86
     87
     88Getting the cl.exe compiler to work:
     89before trying to compile the externalpackages, you need to be sure that your compiler cl.exe
     90(the sdk compiler)works. To make sure, create a simple hello world file:
     91
     92hello.cpp
     93
     94#include <stdio.h>
     95int main(){
     96printf("%s\n","hello");
     97return 1;
     98}
     99
     100and try to compile it by doing:
     101cl hello.cpp
     102
     103If this does not work, do not go any further! The settings of your cl compiler are found
     104in externalpackages/windows/configs/
     105if there is a significant different between you sdk7.1.win7.64.sh file (see above section Compiler)
     106and the file that is being sourced in the windows/configs directory, place your new file in
     107the configs directory. Relaunch bash, and try to run cl hello.cpp again. Beware, you might
     108have to erase some lines in your file, as cygwin might not like some of the stuff that your
     109Windows platform is trying to define.
     110
     111
     112
     113
     114Once the cl.exe compiler works, you can start installing the following packages:
     115petsc   metis triangle and cccl
     116
     117For petsc, use install-3.1-win7.sh
     118For metis, use install-4.0-win7.sh
     119For cccl, use install-win7.sh
     120For triangle, use install-win7.sh
     121
     122Once these externlapackages have been compiled, you can compile issm:
     123
     124./scripts/autoremakererun.sh
     125./configs/config-win7-64.sh
     126make install
     127
     128This should compile both parallel and serial versions of ISSM. Beware though, the parallel
     129version cannot be run on multi-core platforms yet! We are actively working on it.
     130
     131
     132
     133
     134
     135One note about 32 vs 64 bit compile:
     136depending on your Matlab version, you will need to do a 32 or 64 bit compile. The only
     137difference between both compiles is the setup of the cl.exe compiler. For ease of use,
     138you will find in externalpackages/windows/windows_environment.sh a switch to go from 32
     139to 64 bit compile. When you type cl.exe \help at the command prompt, cl.exe should report
     140what system it is compiling for.
     141Beware, switching 32 to 64 or vice-versa implies recompiling everything from scratch.
     142
     143
     144
     145
     146
     147
     148 
Note: See TracChangeset for help on using the changeset viewer.