-
Notifications
You must be signed in to change notification settings - Fork 0
[enGrid 1.3] Installation
The recommended installation method is to use the automatic build script which can be found on the SourceForge download page. Alternatively you can use:
- this direct link for the script mentioned above: build.bash
- this direct link to the git repository for the latest updates to the script: build.bash from git
- Fedora
- Fedora 14
- Fedora 15
- openSUSE
- openSUSE 11.2
- openSUSE 11.3
- openSUSE 11.4
- openSUSE 12.1
- Ubuntu
- Ubuntu 10.10
- Ubuntu 11.04
- Ubuntu 11.10
- Ubuntu 12.04 (use build.bash from git)
cd /home/jonny mkdir Software cd Software mv /home/jonny/Download/build.bash . source build.bashAfterwards the script will print a list of available configurations. Assuming you are installing enGrid onto an Ubuntu system, please type the following:
source build.bash ubuntuThe script will then ask you for the root password, because it needs to launch the system's package manager in order to install the required dependencies. The steps performed by this script are:
- install dependencies
- VTK >= 5.4
- Qt >= 4.5
- standard build environment (gcc, make, ...)
- fetch enGrid sources from GIT
- compile Netgen library
- compile enGrid library
- compile enGrid executable
engrid/setup_generic.bashIMPORTANT: Do not source this script -- otherwise it will not work correctly!
Please note that this script is the same for all Linux distributions. The dedicated scripts (e.g. setup_opensuse.bash) are intended for binary packages.
Download and install the desired architecture version:
Alpha and Beta versions can be found here (older versions here).Other custom builds are described here.
Building enGrid is somewhat easy, but it's useful that the user already has some background in compiling and building software. The instructions provided here will not inform the user about every single aspect of building enGrid.
Since information about building enGrid can extend considerably, this subject will be divided into various topics.
This explains the general process of building enGrid on a Linux system.
- Install various packages as root. Keep in mind that names change depending on distribution and some you might have to build manually:
- git
- subversion
- wget
- gcc-c++
- vtk-qt
- qt-devel
- vtk-devel
- patch
- As normal user (not root), clone git repository and checkout branch release-1.3:
-
git clone git://github.com/enGits/engrid.git
# or if you are behind a restrictive firewall
git clone https://github.com/enGits/engrid.git engrid
# or for even more restrictive firewalls
git clone http://repo.or.cz/r/engrid.git engrid
# or if neither work, download the tarball
wget http://repo.or.cz/w/engrid.git/snapshot/release-1.3.tar.gz
tar -xzf engrid-release-1.3.tar.gz
# If neither work for you, check this page for more options: release-1.3 at GitHub - cd engrid
- git checkout -b release-1.3 remotes/origin/release-1.3
-
git clone git://github.com/enGits/engrid.git
- Set-up environment variables:
- cd src
- Adjust the following two commands accordingly to your VTK installation:
- export VTKINCDIR=/usr/local/include/vtk
- export VTKLIBDIR=/usr/local/lib
- Build the NETGEN library:
- scripts/build-nglib.sh
- Build enGrid library and executable:
- qmake
-
make -j 4
(4 is the number of cores your machine has)
- For running enGrid:
- ./start_engrid.bash
- Optional - to install an applications icon for the programs menu:
- Either run from within the folder engrid this command as root:
- ./setup_generic.bash
- Or create a shortcut yourself on the desired menu, pointing to the run.bash script. An icon is provided at engrid/src/libengrid/resources/icons/G.png.
- Either run from within the folder engrid this command as root:
-
install various packages (as root):
- yum install git
- yum install subversion
- yum install wget
- yum install gcc-c++
- yum install vtk-qt
- yum install qt-devel
- yum install vtk-devel
- yum install patch
-
clone git repository and checkout branch release-1.3:
-
git clone git://github.com/enGits/engrid.git
# or if you are behind a restrictive firewall
git clone https://github.com/enGits/engrid.git engrid
# or for even more restrictive firewalls
git clone http://repo.or.cz/r/engrid.git engrid
# or if neither work, download the tarball
wget http://repo.or.cz/w/engrid.git/snapshot/release-1.3.tar.gz
tar -xzf engrid-release-1.3.tar.gz
# If neither work for you, check this page for more options: release-1.3 at GitHub - cd engrid
- git checkout -b release-1.3 remotes/origin/release-1.3
-
git clone git://github.com/enGits/engrid.git
-
setup environment variables:
- cd src
-
source scripts/setup_pathes.bash fedora64
(or fedora32)
-
build NETGEN library:
- scripts/build-nglib.sh
-
build enGrid library and executable:
- qmake
-
make -j 4
(4 is the number of cores your machine has)
-
add science repository and install various packages (as root):
-
zypper addrepo http://download.opensuse.org/repositories/science/openSUSE_11.4/ science
Make sure to set the correct version number for the repository (i.e. 11.2, 11.3, 11.4, or 12.1) - zypper install git-core
- zypper install patch
- zypper install subversion
- zypper install libqt4-devel
- zypper install make
- zypper install vtk-qt
- zypper install vtk-devel
-
zypper addrepo http://download.opensuse.org/repositories/science/openSUSE_11.4/ science
-
clone git repository and checkout branch release-1.3:
-
git clone git://github.com/enGits/engrid.git
# or if you are behind a restrictive firewall
git clone https://github.com/enGits/engrid.git engrid
# or for even more restrictive firewalls
git clone http://repo.or.cz/r/engrid.git engrid
# or if neither work, download the tarball
wget http://repo.or.cz/w/engrid.git/snapshot/release-1.3.tar.gz
tar -xzf engrid-release-1.3.tar.gz
# If neither work for you, check this page for more options: release-1.3 at GitHub - cd engrid
- git checkout -b release-1.3 remotes/origin/release-1.3
-
git clone git://github.com/enGits/engrid.git
-
setup environment variables:
- cd src
-
source scripts/setup_pathes.bash opensuse64
or source scripts/setup_pathes.bash opensuse32 for a 32 bit system
-
build NETGEN library:
- scripts/build-nglib.sh
-
build enGrid library and executable:
- qmake
-
make -j 4
(4 is the number of cores your machine has)
-
make sure that the universe repository is enabled:
See https://help.ubuntu.com/community/Repositories/Ubuntu. -
install various packages:
- sudo apt-get install git
- sudo apt-get install patch
- sudo apt-get install subversion
- sudo apt-get install g++
- sudo apt-get install libvtk5-qt4-dev
- sudo apt-get install qt4-dev-tools
-
clone git repository and checkout branch release-1.3:
-
git clone git://github.com/enGits/engrid.git
# or if you are behind a restrictive firewall
git clone https://github.com/enGits/engrid.git engrid
# or for even more restrictive firewalls
git clone http://repo.or.cz/r/engrid.git engrid
# or if neither work, download the tarball
wget http://repo.or.cz/w/engrid.git/snapshot/release-1.3.tar.gz
tar -xzf engrid-release-1.3.tar.gz
# If neither work for you, check this page for more options: release-1.3 at GitHub - cd engrid
- git checkout -b release-1.3 remotes/origin/release-1.3
-
git clone git://github.com/enGits/engrid.git
-
setup environment variables:
- cd src
- source scripts/setup_pathes.bash ubuntu
-
build NETGEN library:
- scripts/build-nglib.sh
-
build enGrid library and executable:
- qmake
-
make -j 4
(4 is the number of cores your machine has)
This topic is very extensive, therefore the detailed description on how to compile enGrid on a Windows system is provided here.