Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
diana:autotools [2014-02-28 15:27:26] davidb [Fedora 20] |
diana:autotools [2022-05-31 09:29:31] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Building Metlibs and Diana with Autotools ====== | ====== Building Metlibs and Diana with Autotools ====== | ||
- | **Warning:** //This page is currently being revised. Details may be incorrect | + | **OUTDATED:** //This page is no longer up to date, diana and metlibs |
This document describes how to build the Diana application and its main dependencies (Fimex and Metlibs) from source code, focusing on Ubuntu 12.04 (Precise) and Fedora 20. We provide commands to install further dependencies as they are needed, but this assumes that previous steps have been followed. For example, we list the common dependencies between Metlibs and Fimex as Fimex dependencies. | This document describes how to build the Diana application and its main dependencies (Fimex and Metlibs) from source code, focusing on Ubuntu 12.04 (Precise) and Fedora 20. We provide commands to install further dependencies as they are needed, but this assumes that previous steps have been followed. For example, we list the common dependencies between Metlibs and Fimex as Fimex dependencies. | ||
Line 23: | Line 23: | ||
sudo yum install gcc-c++ make wget tar subversion autoconf automake \ | sudo yum install gcc-c++ make wget tar subversion autoconf automake \ | ||
| | ||
- | | + | |
</ | </ | ||
===== Obtaining the source code ===== | ===== Obtaining the source code ===== | ||
- | Obtain the latest source code from the subversion | + | Obtain the latest source code from the source code repositories. Currently, fimex, metlibs and Diana are held in git repositories: |
**fimex:** | **fimex:** | ||
< | < | ||
- | svn co https://svn.met.no/fimex/tags/ | + | git clone https://github.com/metno/fimex.git |
</ | </ | ||
**metlibs: | **metlibs: | ||
< | < | ||
- | svn co https://svn.met.no/metlibs/common | + | git clone https://github.com/metno/metlibs-milogger.git |
- | svn co https://svn.met.no/metlibs/diana-support | + | git clone https://github.com/metno/metlibs-puctools.git |
- | svn co https://svn.met.no/metlibs/gl-support | + | git clone https://github.com/metno/metlibs-putools.git |
- | svn co https://svn.met.no/metlibs/tseries-support | + | git clone https://github.com/metno/metlibs-pudatatypes.git |
- | svn co https://svn.met.no/metlibs/qt-utilities | + | git clone https://github.com/metno/metlibs-qutilities.git |
+ | git clone https:// | ||
</ | </ | ||
**Diana:** | **Diana:** | ||
< | < | ||
- | svn co https://svn.met.no/diana/trunk diana | + | git clone https://github.com/metno/diana.git |
</ | </ | ||
Line 56: | Line 57: | ||
< | < | ||
- | sudo apt-get install | + | sudo apt-get install libxml2-dev libproj-dev libudunits2-dev \ |
| | ||
- | | + | |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
</ | </ | ||
- | ==== Fedora ==== | + | ==== Fedora |
Install the dependencies using the following command: | Install the dependencies using the following command: | ||
Line 81: | Line 86: | ||
< | < | ||
sudo apt-get install ftgl-dev libhdf4g-dev libtiff4-dev libqt4-dev proj \ | sudo apt-get install ftgl-dev libhdf4g-dev libtiff4-dev libqt4-dev proj \ | ||
- | | + | |
+ | | ||
</ | </ | ||
Line 89: | Line 95: | ||
| | ||
| | ||
- | | + | |
</ | </ | ||
Line 105: | Line 111: | ||
==== Ubuntu 12.04 (Precise) ==== | ==== Ubuntu 12.04 (Precise) ==== | ||
- | **Without libavformat: | ||
< | < | ||
sudo apt-get install libemos-dev libgrib-api-dev libshp-dev libxt-dev | sudo apt-get install libemos-dev libgrib-api-dev libshp-dev libxt-dev | ||
- | </ | ||
- | |||
- | **With libavformat: | ||
- | < | ||
- | sudo apt-get install libemos-dev libgrib-api-dev libshp-dev libavformat-dev libxt-dev | ||
</ | </ | ||
==== Fedora 20 ==== | ==== Fedora 20 ==== | ||
- | For observation buffer support in Diana, install EMOSLIB [[http://www.ecmwf.int/products/data/software/interpolation.html|from source]]). The optional libavformat library is not available in the standard Fedora repositories. If you really need to produce video files of products created with Diana, you may be able to find a suitable package for Fedora in one of the [[http:// | + | For observation buffer support in Diana, install EMOSLIB [[https://software.ecmwf.int/wiki/display/EMOS/Emoslib|from source]]. |
- | **Without libavformat: | ||
< | < | ||
sudo yum install grib_api-devel shapelib-devel | sudo yum install grib_api-devel shapelib-devel | ||
Line 132: | Line 131: | ||
</ | </ | ||
- | If you want to install the library in an alternative location, specify it using the <html> | + | If you want to install the library in an alternative location, specify it using the <nowiki> |
option; for example, use the following command to specify a directory inside the user's home directory: | option; for example, use the following command to specify a directory inside the user's home directory: | ||
Line 150: | Line 149: | ||
===== Installing Metlibs ====== | ===== Installing Metlibs ====== | ||
- | Enter the subdirectories for each of the metlibs modules, configuring, | + | Enter the subdirectories for each of the metlibs modules, configuring, |
- | + | ||
- | ==== Ubuntu 12.04 (Precise) ==== | + | |
< | < | ||
Line 160: | Line 157: | ||
THIS_DIR=`pwd` | THIS_DIR=`pwd` | ||
+ | # uncomment next line on Fedora | ||
+ | # | ||
+ | SUDO=sudo | ||
- | cd $THIS_DIR/ | + | for l in milogger puctools putools pudatatypes qutilities coserver; do |
- | ./ | + | cd "$THIS_DIR/metlibs-$l" |
- | sudo make install | + | ./ |
- | + | $SUDO make install | |
- | cd $THIS_DIR/common/ | + | done |
- | ./ | + | |
- | sudo make install | + | |
- | + | ||
- | cd $THIS_DIR/ | + | |
- | ./ | + | |
- | sudo make install | + | |
- | + | ||
- | cd $THIS_DIR/ | + | |
- | ./ | + | |
- | sudo make install | + | |
- | + | ||
- | cd $THIS_DIR/ | + | |
- | ./ | + | |
- | sudo make install | + | |
- | + | ||
- | cd $THIS_DIR/ | + | |
- | ./ | + | |
- | sudo make install | + | |
- | + | ||
- | cd $THIS_DIR/ | + | |
- | ./ | + | |
- | sudo make install | + | |
- | + | ||
- | cd $THIS_DIR/ | + | |
- | ./ | + | |
- | sudo make install | + | |
- | + | ||
- | cd $THIS_DIR/ | + | |
- | ./ | + | |
- | sudo make install | + | |
- | + | ||
- | cd $THIS_DIR/ | + | |
- | ./ | + | |
- | sudo make install | + | |
- | + | ||
- | cd $THIS_DIR/ | + | |
- | ./ | + | |
- | sudo make install | + | |
</ | </ | ||
- | |||
- | ==== Fedora 20 ==== | ||
- | |||
- | < | ||
- | #/bin/sh | ||
- | |||
- | set -e | ||
- | |||
- | THIS_DIR=`pwd` | ||
- | |||
- | cd $THIS_DIR/ | ||
- | ./ | ||
- | sudo make install | ||
- | |||
- | cd $THIS_DIR/ | ||
- | ./ | ||
- | sudo make install | ||
- | |||
- | cd $THIS_DIR/ | ||
- | ./ | ||
- | sudo make install | ||
- | |||
- | cd $THIS_DIR/ | ||
- | ./ | ||
- | sudo make install | ||
- | |||
- | cd $THIS_DIR/ | ||
- | ./ | ||
- | sudo make install | ||
- | |||
- | cd $THIS_DIR/ | ||
- | ./ | ||
- | sudo make install | ||
- | |||
- | cd $THIS_DIR/ | ||
- | ./ | ||
- | sudo make install | ||
- | |||
- | cd $THIS_DIR/ | ||
- | ./ | ||
- | sudo make install | ||
- | |||
- | cd $THIS_DIR/ | ||
- | ./ | ||
- | sudo make install | ||
- | |||
- | cd $THIS_DIR/ | ||
- | ./ | ||
- | sudo make install | ||
- | |||
- | cd $THIS_DIR/ | ||
- | ./ | ||
- | sudo make install | ||
- | </ | ||
- | |||
===== Installing Diana ===== | ===== Installing Diana ===== | ||
- | **Note:** By default, support for observation buffers is conditionally enabled and video export is enabled. To disable video support, append the <html> | + | **Note:** By default, support for observation buffers is conditionally enabled and video export is enabled. To disable video support, append the <nowiki> |
==== Ubuntu 12.04 (Precise) ==== | ==== Ubuntu 12.04 (Precise) ==== | ||
Line 274: | Line 181: | ||
</ | </ | ||
- | To configure the library for installation in a directory where you have permission to write files (for example, $HOME/diana for a directory in the user's home directory), use the <html> | + | To configure the library for installation in a directory where you have permission to write files (for example, $HOME/diana for a directory in the user's home directory), use the <nowiki> |
< | < | ||
Line 287: | Line 194: | ||
< | < | ||
./ | ./ | ||
- | ./configure --enable-xlib --enable-geotiff --disable-video-export | + | ./configure --enable-xlib --enable-geotiff --prefix=/ |
+ | | ||
</ | </ | ||
- | To configure the library for installation in a directory where you have permission to write files (for example, $HOME/diana for a directory in the user's home directory), use the <html> | + | To configure the library for installation in a directory where you have permission to write files (for example, $HOME/diana for a directory in the user's home directory), use the <nowiki> |
< | < | ||
./ | ./ | ||
- | ./configure --enable-xlib --enable-geotiff --prefix=$HOME/ | + | ./configure --enable-xlib --enable-geotiff --prefix=$HOME/ |
+ | | ||
</ | </ | ||
Line 308: | Line 217: | ||
You may need root privileges to install the application unless you specified a prefix in the configuration step. | You may need root privileges to install the application unless you specified a prefix in the configuration step. | ||
+ | If you want to use the video export function, you have to install the '' | ||
+ | |||
+ | * Ubuntu/ | ||
+ | |||
+ | ===== Next Steps ===== | ||
+ | |||
+ | See the [[gettingstarted# |