Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[49fcb0]: buildInstructions.txt Maximize Restore History

Download this file

buildInstructions.txt    169 lines (110 with data), 3.8 kB

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