Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

enGrid source code and compilation instructions
  • Mike March 2009
    Source code repository to get the latest development version (UNSTABLE):
    git clone git://engits.eu/git/engrid.git
    or
    git clone http://engits.eu/git/engrid.git
    (Using the git protocol should be faster. ;) )

    WARNING: The master branch may be unstable! It is the main development branch.
    Please use the release branch if you want a stable version.


    To use the release branch, run the following command after git clone:
    git checkout -b release remotes/origin/release

    The git repository can also be browsed at http://engits.eu/gitweb/

    Deprecated CVS repositories (just left here for reference):
    cvs -d:pserver:anonymous@engrid.cvs.sourceforge.net:/cvsroot/engrid login
    cvs -d:pserver:anonymous@engrid.cvs.sourceforge.net:/cvsroot/engrid co src
  • Mike April 2009
    If you want, you can try our automated installation script instead: viewtopic.php?f=2&t=62
    It mostly does what is described here.
    __________________________________________________________

    Variables to change according to your needs:

    VTKPREFIX = where to install VTK ( Default = /usr/local )
    VTKVERSION = VTK version
    QTPREFIX = where to install QT ( Default = /usr/local/Trolltech/Qt-4.5.0/ )
    CGNSPREFIX = where to install CGNS ( Default = /usr/local/ )


    Compiling VTK from source:
    You can get VTK from: http://www.vtk.org/VTK/resources/software.html
    Or from the ThirdParty package from OpenFOAM: http://www.opencfd.co.uk/openfoam/downl ... l#download


    cmake -DCMAKE_INSTALL_PREFIX:PATH=$VTKPREFIX -DBUILD_SHARED_LIBS:BOOL=ON -DVTK_USE_GUISUPPORT:BOOL=ON -DVTK_USE_QVTK:BOOL=ON -DVTK_USE_QT:BOOL=ON -DDESIRED_QT_VERSION:STRING=4 .
    chmod 644 Utilities/vtktiff/tif_fax3sm.c
    make && su -c 'make install'


    Optionally, you may also use ccmake or cmake-gui to simplify defining the configuration variables:
    cmake .
    ccmake .

    or
    cmake .
    cmake-gui .


    Configuration variables:

    CMAKE_INSTALL_PREFIX = VTKPREFIX
    BUILD_SHARED_LIBS = ON
    VTK_USE_GUISUPPORT = ON
    VTK_USE_QVTK = ON
    VTK_USE_QT = ON
    DESIRED_QT_VERSION = 4


    If you also want the Java, Python and Tcl/Tk wrappers:

    VTK_WRAP_JAVA
    VTK_WRAP_PYTHON
    VTK_WRAP_TCL


    Compiling Qt from source:
    You can get Qt from: http://www.qtsoftware.com/downloads


    ./configure --prefix=$QTPREFIX -opensource -nomake examples -nomake demos -nomake docs -no-webkit -no-phonon -no-phonon-backend -no-qt3support -no-accessibility -silent
    make && su -c 'make install'


    Compiling CGNS from source:
    You can get CGNS from: http://cgns.sourceforge.net/download.html


    mkdir -p $CGNSPREFIX/include
    mkdir -p $CGNSPREFIX/lib
    ./configure --prefix=$CGNSPREFIX && make && make install


    Compiling enGrid from source:

    export VTKINCDIR=$VTKPREFIX/include/vtk-VTKVERSION/
    export VTKLIBDIR=$VTKPREFIX/lib/ (or VTKPREFIX/lib/vtk-VTKVERSION in some cases)
    export LD_LIBRARY_PATH=$VTKLIBDIR:$LD_LIBRARY_PATH

    export CGNSINCDIR=/opt/shared/cgns/include/
    export CGNSLIBDIR=/opt/shared/cgns/lib/
    export LD_LIBRARY_PATH=$CGNSLIBDIR:$LD_LIBRARY_PATH

    export PATH=$QTPREFIX/bin:$PATH
    export QTDIR=$QTPREFIX
    export LD_LIBRARY_PATH=$QTPREFIX/lib:$LD_LIBRARY_PATH

    ./build-nglib.sh
    qmake
    make


    Note: When using libqt4-dev from the repositories on Debian-based systems, make sure you use qt4 instead of qt3 by running:
    sudo update-alternatives --config qmake
This discussion has been closed.
← All Discussions