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