Differences
This shows you the differences between two versions of the page.
diana:autotools [2014-02-28 14:37:29] davidb [Ubuntu 12.04 (Precise)] |
diana:autotools [2022-05-31 09:29:31] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Building Metlibs and Diana with Autotools ====== | ||
- | |||
- | **Warning: | ||
- | |||
- | ===== General Prerequisites ===== | ||
- | |||
- | This section describes the basic set of packages that will be required to build the software. | ||
- | ==== Ubuntu 12.04 (Precise) ==== | ||
- | |||
- | On a clean stock Ubuntu Precise (12.04) install, you will first need to install build tools: | ||
- | |||
- | < | ||
- | sudo apt-get install build-essential autoconf automake libtool subversion \ | ||
- | | ||
- | </ | ||
- | |||
- | ==== Fedora 20 ==== | ||
- | |||
- | On Fedora 20, this command has been found to install a reasonable base set of tools: | ||
- | |||
- | < | ||
- | sudo yum -y install gcc-c++ make wget tar subversion autoconf automake findutils libtool \ | ||
- | flex bison autoconf-archive gcc-gfortran | ||
- | </ | ||
- | |||
- | ===== Obtaining the source code ===== | ||
- | |||
- | Obtain the latest source code from the subversion repositories: | ||
- | |||
- | **fimex:** | ||
- | < | ||
- | svn co https:// | ||
- | </ | ||
- | |||
- | **metlibs: | ||
- | < | ||
- | svn co https:// | ||
- | svn co https:// | ||
- | svn co https:// | ||
- | svn co https:// | ||
- | svn co https:// | ||
- | </ | ||
- | |||
- | **Diana:** | ||
- | < | ||
- | svn co https:// | ||
- | </ | ||
- | |||
- | ===== Fimex ===== | ||
- | |||
- | ==== Ubuntu 12.04 (Precise) ==== | ||
- | |||
- | Install the dependencies using the following command: | ||
- | |||
- | < | ||
- | sudo apt-get install libboost-dev libxml2-dev libproj-dev libudunits2-dev \ | ||
- | | ||
- | | ||
- | </ | ||
- | |||
- | ==== Fedora ==== | ||
- | |||
- | Install the dependencies using the following command: | ||
- | |||
- | < | ||
- | sudo yum -y install boost-devel libxml2-devel udunits2-devel \ | ||
- | netcdf-devel grib_api-devel jasper-devel libpng-devel \ | ||
- | libjpeg-turbo-devel libpqxx-devel log4cpp-devel \ | ||
- | proj-devel udunits-devel | ||
- | </ | ||
- | |||
- | ===== Metlibs ===== | ||
- | |||
- | Next, you will need to install various third-party libraries that Metlibs and Diana depend on: | ||
- | |||
- | ==== Ubuntu 12.04 (Precise) ==== | ||
- | |||
- | **Without optional libraries: | ||
- | < | ||
- | sudo apt-get install ftgl-dev libhdf4g-dev libtiff4-dev libqt4-dev proj \ | ||
- | | ||
- | | ||
- | </ | ||
- | |||
- | **With optional libraries: | ||
- | < | ||
- | sudo apt-get install ftgl-dev libhdf4g-dev libhdf5-serial-dev libtiff4-dev \ | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | </ | ||
- | |||
- | ==== Fedora 20 ==== | ||
- | |||
- | < | ||
- | sudo yum -y install ftgl-devel libgeotiff-devel mesa-libGL-devel mesa-libGLU-devel qt-devel shapelib-devel | ||
- | </ | ||
- | |||
- | ===== Diana ===== | ||
- | |||
- | Diana can be configured to be used for creating animations. If this is desired then libavformat and its development headers need to be installed. On Ubuntu 12.04, a package exists for the optional EMOSLIB dependency, required to support viewing of observation files. However, it is not available for every distribution. | ||
- | |||
- | ==== Ubuntu 12.04 (Precise) ==== | ||
- | |||
- | **Without libavformat: | ||
- | < | ||
- | 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 ==== | ||
- | |||
- | For observation buffer support in Diana, install EMOSLIB [[http:// | ||
- | |||
- | **Without libavformat: | ||
- | < | ||
- | sudo yum install grib_api-devel shapelib-devel | ||
- | </ | ||
- | |||
- | ===== Installing Metlibs ====== | ||
- | |||
- | Enter the subdirectories for each of the metlibs modules, configuring, | ||
- | |||
- | ==== Ubuntu 12.04 (Precise) ==== | ||
- | |||
- | < | ||
- | #/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 | ||
- | </ | ||
- | |||
- | ==== 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 | ||
- | </ | ||
- | |||
- | ==== Building ==== | ||
- | |||
- | Build and install the library with the following commands: | ||
- | |||
- | < | ||
- | make | ||
- | make install | ||
- | </ | ||
- | |||
- | You may need root privileges to install the library unless you specified a | ||
- | prefix in the configuration step. | ||
- | ===== Installing Diana ===== | ||
- | |||
- | By default, support for observation buffers is conditionally enabled and video export is enabled. To disable video support, append the < | ||
- | |||
- | ==== Ubuntu 12.04 (Precise) ==== | ||
- | |||
- | Enter the '' | ||
- | |||
- | < | ||
- | ./configure --enable-xlib --enable-geotiff | ||
- | </ | ||
- | |||
- | 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 < | ||
- | |||
- | < | ||
- | ./configure --enable-xlib --enable-geotiff --prefix=$HOME/ | ||
- | </ | ||
- | |||
- | ==== Fedora 20 ==== | ||
- | |||
- | Enter the '' | ||
- | |||
- | < | ||
- | ./configure --enable-xlib --enable-geotiff --disable-video-export --with-png-libdir=/ | ||
- | </ | ||
- | |||
- | 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 < | ||
- | |||
- | < | ||
- | ./configure --enable-xlib --enable-geotiff --prefix=$HOME/ | ||
- | </ | ||
- | |||
- | ==== Building ==== | ||
- | |||
- | Build and install the application with the following commands: | ||
- | |||
- | < | ||
- | make | ||
- | make install | ||
- | </ | ||
- | |||
- | You may need root privileges to install the application unless you specified a prefix in the configuration step. | ||