Added buildInstructions for Ubuntu 14.04
This commit is contained in:
parent
0fb2b08722
commit
52ac9ff4f8
1 changed files with 59 additions and 0 deletions
59
doc/buildInstructions/Ubuntu/Ubuntu_14.04
Normal file
59
doc/buildInstructions/Ubuntu/Ubuntu_14.04
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
Below are build instructions for Ubuntu 14.04.
|
||||||
|
|
||||||
|
These instructions assume that you install in the default location, which is
|
||||||
|
~/foam/ . Create this folder with:
|
||||||
|
|
||||||
|
cd ~
|
||||||
|
mkdir foam
|
||||||
|
|
||||||
|
|
||||||
|
* Obtain and unpack source code (if you read this, you probably already have):
|
||||||
|
|
||||||
|
The recommended way is to get the source code through git source code
|
||||||
|
management system. This way, you can get updates and bugfixes easily by running
|
||||||
|
"git pull". To install into the default location run:
|
||||||
|
|
||||||
|
cd ~/foam
|
||||||
|
git clone git://git.code.sf.net/p/openfoam-extend/foam-extend-3.0
|
||||||
|
|
||||||
|
|
||||||
|
Alternatively, you can download a snapshot (.tgz) of the source code from:
|
||||||
|
http://sourceforge.net/projects/openfoam-extend/files/foam-extend-3.0/
|
||||||
|
|
||||||
|
|
||||||
|
* Install required packages:
|
||||||
|
|
||||||
|
sudo apt-get install git-core build-essential binutils-dev flex bison \
|
||||||
|
zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev \
|
||||||
|
libxt-dev rpm mercurial graphviz
|
||||||
|
|
||||||
|
Make an additional link:
|
||||||
|
|
||||||
|
sudo ln -s /usr/bin/make /usr/bin/gmake
|
||||||
|
|
||||||
|
* Set environment variables:
|
||||||
|
|
||||||
|
cd ~/foam/foam-extend-3.0
|
||||||
|
. etc/bashrc
|
||||||
|
|
||||||
|
Optionally, set environment variable for Qt to compile ParaView:
|
||||||
|
|
||||||
|
export QT_BIN_DIR=/usr/bin
|
||||||
|
|
||||||
|
Optionally, set environment variable for compiling Cuda solvers, for example
|
||||||
|
(replace "sm_30" with value according to your GPU architecture):
|
||||||
|
|
||||||
|
export CUDA_ARCH=sm_30
|
||||||
|
|
||||||
|
|
||||||
|
* Compile:
|
||||||
|
|
||||||
|
./Allwmake.firstInstall
|
||||||
|
|
||||||
|
|
||||||
|
* Create user directory:
|
||||||
|
|
||||||
|
mkdir -p $FOAM_RUN
|
||||||
|
|
||||||
|
|
||||||
|
And you are ready to start.
|
Reference in a new issue