Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
diana:autotools [2016-09-26 13:24:14]
alexanderb [Diana] drop libavformat
diana:autotools [2020-02-10 11:00:52]
dark
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 and are subject to change.//+**OUTDATED:** //This page is no longer up to date, diana and metlibs are now built using cmake.//
  
 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 131: Line 131:
 </code> </code>
  
-If you want to install the library in an alternative location, specify it using the <html>--prefix</html>+If you want to install the library in an alternative location, specify it using the <nowiki>--prefix</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 150:
  
 Enter the subdirectories for each of the metlibs modules, configuring, building and installing them using the scripts listed below. Note that, by default, the libraries will be installed under ''/usr/local'' unless you specify a prefix to the configure script, such as <html>--prefix=$HOME/diana</html> to install the libraries in the ''diana'' directory inside the user's home directory. Enter the subdirectories for each of the metlibs modules, configuring, building and installing them using the scripts listed below. Note that, by default, the libraries will be installed under ''/usr/local'' unless you specify a prefix to the configure script, such as <html>--prefix=$HOME/diana</html> to install the libraries in the ''diana'' directory inside the user's home directory.
- 
-==== Ubuntu 12.04 (Precise) ==== 
  
 <code> <code>
Line 159: Line 157:
  
 THIS_DIR=`pwd` THIS_DIR=`pwd`
 +# uncomment next line on Fedora
 +#PREFIX="--prefix=/usr/local"
 +SUDO=sudo
  
-cd $THIS_DIR/common/miLogger/trunk +for l in milogger puctools putools pudatatypes qutilities coserver; do 
-./autogen.sh && ./configure && make +  cd "$THIS_DIR/metlibs-$l" 
-sudo make install +  ./autogen.sh && ./configure $PREFIX && make 
- +  $SUDO make install 
-cd $THIS_DIR/common/puCtools/trunk +done
-./autogen.sh && ./configure && make +
-sudo make install +
- +
-cd $THIS_DIR/common/puTools/trunk +
-./autogen.sh && ./configure && make +
-sudo make install +
- +
-cd $THIS_DIR/tseries-support/puDatatypes/trunk +
-./autogen.sh && ./configure && make +
-sudo make install +
- +
-cd $THIS_DIR/gl-support/glp/trunk +
-./autogen.sh && ./configure && make +
-sudo make install +
- +
-cd $THIS_DIR/gl-support/miFTGL/trunk +
-./autogen.sh && ./configure && make +
-sudo make install +
- +
-cd $THIS_DIR/gl-support/glText/trunk +
-./autogen.sh && ./configure --enable-xfonts && make +
-sudo make install +
- +
-cd $THIS_DIR/qt-utilities/qUtilities/trunk +
-./autogen.sh && ./configure && make +
-sudo make install +
- +
-cd $THIS_DIR/qt-utilities/coserver/trunk +
-./autogen.sh && ./configure && make +
-sudo make install+
 </code> </code>
- 
-==== Fedora 20 ==== 
- 
-<code> 
-#/bin/sh 
- 
-set -e 
- 
-THIS_DIR=`pwd` 
- 
-cd $THIS_DIR/common/miLogger/trunk 
-./autogen.sh && ./configure --prefix=/usr/local && make 
-sudo make install 
- 
-cd $THIS_DIR/common/puCtools/trunk 
-./autogen.sh && ./configure --prefix=/usr/local && make 
-sudo make install 
- 
-cd $THIS_DIR/common/puTools/trunk 
-./autogen.sh && ./configure --prefix=/usr/local && make 
-sudo make install 
- 
-cd $THIS_DIR/tseries-support/puDatatypes/trunk 
-./autogen.sh && ./configure --prefix=/usr/local && make 
-sudo make install 
- 
-cd $THIS_DIR/gl-support/glp/trunk 
-./autogen.sh && ./configure --prefix=/usr/local && make 
-sudo make install 
- 
-cd $THIS_DIR/gl-support/miFTGL/trunk 
-./autogen.sh && ./configure --prefix=/usr/local && make 
-sudo make install 
- 
-cd $THIS_DIR/gl-support/glText/trunk 
-./autogen.sh && ./configure --prefix=/usr/local --enable-xfonts && make 
-sudo make install 
- 
-cd $THIS_DIR/qt-utilities/qUtilities/trunk 
-./autogen.sh && ./configure --prefix=/usr/local && make 
-sudo make install 
- 
-cd $THIS_DIR/qt-utilities/coserver/trunk 
-./autogen.sh && ./configure --prefix=/usr/local && make 
-sudo make install 
-</code> 
- 
  
 ===== Installing Diana ===== ===== Installing Diana =====
Line 270: Line 194:
 <code> <code>
 ./autogen.sh ./autogen.sh
-./configure --enable-xlib --enable-geotiff --prefix=/usr/local --disable-video-export \+./configure --enable-xlib --enable-geotiff --prefix=/usr/local \
             --with-png-libdir=/usr/lib64 --enable-vcross-v2 --with-udunits2-includedir=/usr/include/udunits2             --with-png-libdir=/usr/lib64 --enable-vcross-v2 --with-udunits2-includedir=/usr/include/udunits2
 </code> </code>
Line 278: Line 202:
 <code> <code>
 ./autogen.sh ./autogen.sh
-./configure --enable-xlib --enable-geotiff --prefix=$HOME/diana --disable-video-export \+./configure --enable-xlib --enable-geotiff --prefix=$HOME/diana \
             --with-png-libdir=/usr/lib64 --enable-vcross-v2 --with-udunits2-includedir=/usr/include/udunits2             --with-png-libdir=/usr/lib64 --enable-vcross-v2 --with-udunits2-includedir=/usr/include/udunits2
 </code> </code>
Line 292: Line 216:
  
 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 ''avconv'' utility.
 +
 +  * Ubuntu/Debian: ''sudo apt-get install libav-tools''
  
 ===== Next Steps ===== ===== Next Steps =====
  
 See the [[gettingstarted#installing_data_files|Installing Data Files]] section of the [[gettingstarted|Getting Started]] document for instructions about configuring and running Diana. See the [[gettingstarted#installing_data_files|Installing Data Files]] section of the [[gettingstarted|Getting Started]] document for instructions about configuring and running Diana.
  • diana/autotools.txt
  • Last modified: 2022-05-31 09:29:31
  • (external edit)