ThirdParty: some more comments, and adjustments to path of generated .tgz files
[OpenFOAM-1.6-ext.git] / buildInstructions.txt
blobf2c3cd198dd63964e3a5fa00ab71daf2d444ac8f
1 1) Download files
3 Get all files from the sources directory on the web site and put them into the linuxSrc directory
5 2) Unpack OpenFOAM and set up the dot-files
7 cd ~/OpenFOAM
8 tar xzf linuxSrc/OpenFOAM-1.4.1-dev_22_11_05.tgz
9 cp -r OpenFOAM-1.4.1-dev/.OpenFOAM-1.4.1-dev ~
11 set up dot files:
13 put:
15 source ~/.OpenFOAM-1.4.1-dev/cshrc
17 into your .cshrc file.  If you are using bash, add
19 . ~/.OpenFOAM-1.4.1-dev/bashrc
21 into ~/.bashrc
23 Do:
25 source ~/.cshrc
27 For bash users, do
29 . ~/.bashrc
31 instead.
34 3) Build utilities
36 3.1) gcc
37 tar xzf gcc-4.2.2.tgz
38 mkdir gcc-4.2.2-obj
39 cd gcc-4.2.2-obj
41 ../gcc-4.2.2/configure --prefix=/usr/tmp/gcc-4.2.2 --exec-prefix=/usr/tmp/gcc-4.2.2 --enable-languages=c,c++ --enable-shared
43 gmake bootstrap
44 gmake
45 gmake install
47 cd /usr/tmp/
48 tar cvzf ~/OpenFOAM/linux/gcc-4.2.2.bin.tgz gcc-4.2.2
49 cd ~/OpenFOAM/linux
50 tar xzf gcc-4.2.2.bin.tgz
52 3.2) gdb
54 cd ~/OpenFOAM/linuxSrc
55 tar xzf gdb-6.4.tar.gz
56 cd gdb-6.4
57 ./configure --prefix=~/OpenFOAM/linux/gdb-6.4
58 gmake
59 gmake install
61 3.3 cmake
63 cd ~/OpenFOAM/linuxSrc
64 tar xzf cmake-2.4.7.tar.gz
65 cd cmake-2.4.7
66 ./configure --prefix=~/OpenFOAM/linux/cmake-2.4.7
67 gmake
68 gmake install
70 3.4 dx
71 cd ~/OpenFOAM/linuxSrc
72 tar xzf dx-4.4.4.tgz
73 cd dx-4.4.4
74 ./configure --prefix=~/OpenFOAM/linux/dx-4.4.4 --enable-shared
75 gmake
76 gmake install
78 3.5 paraview
79 cd ~/OpenFOAM/linuxSrc
80 tar xvzf paraview-2.4.4.tgz
81 mkdir paraview-2.4.4-obj
82 cmake -i ../paraview-2.4.4
84 Change options:
86 enable shared library: YES
87 prefix: ~/OpenFOAM/linux/paraview-2.4.4
89 gmake
90 gmake install
93 cd ~/OpenFOAM/linuxSrc
95 mkdir ~/OpenFOAM/linux/paraview-2.4.4/include
96 cp ./paraview-2.4.4/VTK/Common/vtk* ~/OpenFOAM/linux/paraview-2.4.4/include/
97 cp ./paraview-2.4.4/VTK/Filtering/vtk* ~/OpenFOAM/linux/paraview-2.4.4/include/
98 cp ./paraview-2.4.4-obj/VTK/vtk* ~/OpenFOAM/linux/paraview-2.4.4/include/
99 cp ./paraview-2.4.4-obj/ParaViewConfig.cmake ~/OpenFOAM/linux/paraview-2.4.4/lib/paraview-2.4/ 
101 linux64 copy commands
103 mkdir ~/OpenFOAM/linux64/paraview-2.4.4/include
104 cp ./paraview-2.4.4/VTK/Common/vtk* ~/OpenFOAM/linux64/paraview-2.4.4/include/
105 cp ./paraview-2.4.4/VTK/Filtering/vtk* ~/OpenFOAM/linux64/paraview-2.4.4/include/
106 cp ./paraview-2.4.4-obj/VTK/vtk* ~/OpenFOAM/linux64/paraview-2.4.4/include/
107 cp ./paraview-2.4.4-obj/ParaViewConfig.cmake ~/OpenFOAM/linux64/paraview-2.4.4/lib/paraview-2.4/ 
110 4) build OpenFOAM
112 foam
113 (this should take you to the ~/OpenFOAM/OpenFOAM-1.4.1-dev directory)
115 ./Allwmake
117 This will build foam.
119 5) check build
121 source ~/.cshrc
122 icoFoam
124 (this should run and report something like)
126 wooster*101-> icoFoam
127 /*---------------------------------------------------------------------------*\
128 | =========                 |                                                 |
129 | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
130 |  \\    /   O peration     | Version:  1.4.1-dev                             |
131 |   \\  /    A nd           | Web:      http://www.openfoam.org               |
132 |    \\/     M anipulation  |                                                 |
133 \*---------------------------------------------------------------------------*/
135 Exec   : icoFoam
136 Date   : Mar 06 2008
137 Time   : 17:25:53
138 Host   : wooster
139 PID    : 8238
141 Usage: icoFoam <root> <case> [-parallel]
144 --> FOAM FATAL ERROR : Wrong number of arguments, expected 2 found 0
147 FOAM exiting
150 SVN check-out command
152 svn co https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.4.1-dev
155 SVK setup
157 svk depotmap --init
158 svk mirror https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.4.1-dev //OpenFOAM-1.4.1-dev
159 svk sync //OpenFOAM-1.4.1-dev
161 Ready to check-out
163 Additional source packages:
166 http://www.lam-mpi.org/7.1/download.php
167 http://www.open-mpi.org/
168 http://www.mico.org/
169 http://www.zlib.net/