diana:batch_diana_on_headless_systems

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
diana:batch_diana_on_headless_systems [2014-04-04 09:47:20]
davidb [Configuring Diana]
diana:batch_diana_on_headless_systems [2022-05-31 09:29:31] (current)
Line 10: Line 10:
 ===== Building Qt ===== ===== Building Qt =====
  
-We build an alternative set of Qt libraries using the standard Qt 4.8 sources (4.8.1 and 4.8.3 will work fine), applying some patches and using an "embedded" configuration to remove the dependency on X. +We build an alternative set of Qt libraries using the standard Qt 4.8 sources, 
 +applying some patches and using an "embedded" configuration to remove the dependency on X. 
  
-The patches we use are part of the Debian packaging we use to build packages for Ubuntu 12.04These can be obtained from a git repository:+Packages were built with Qt4 versions 
 +  * 4.8.
 +  * [[http://download.qt-project.org/archive/qt/4.8/4.8.3/qt-everywhere-opensource-src-4.8.3.tar.gz|4.8.3]] 
 +  * [[http://download.qt.io/archive/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz|4.8.6]]
  
-<code> +The patches we use are part of the Debian packaging we use to build packages for Ubuntu 12.04 and 14.04. 
-git clone https://projects.met.no/~davidb/projects/qt4-headless/git qt4-headless +These can be obtained from [[https://github.com/metno/qt4-headless|github qt4-headless]]:
-</code>+
  
-The standard Debian package building process involves applying the patches found in the ''debian/patches'' directory to the Qt 4.8 sources then running the ''configure'' script in the way described in the ''debian/rules'' file.+  git clone https://github.com/metno/qt4-headless qt4-headless 
 +  # the branch 4.8-qpa contains the most recent patches (as of 2016-02-26) 
 +  git checkout 4.8-qpa
  
-==== Building on a Debian Derivative ==== +To build debian packages, we re-package the Qt4 source code to obtain the directory structure expected by the dpkg build tools, then extract the re-packaged source archive, copy in the ''debian'' directory from git git repository, and build packages with ''debuild'' or similar.
- +
-If you are building on a Debian derived distributionyou can simply copy the ''debian'' directory from the ''qt4-headless'' directory into the Qt 4.8 source directory, enter the source directory and run debuild: +
- +
-<code> +
-debuild -sa -uc -us +
-</code>+
  
-Note that, if you use the distribution's own source package, you will need to unpatch the sources first by running the debhelper script, dh_quilt_unpatch.+Packages for some ubuntu releases are available from the [[https://launchpad.net/~met-norway/+archive/ubuntu/metapps|MET Norway PPA]].
  
-The result should be a package in the parent directory you can install using dpkg or aptitude. 
 ==== Building on Other Distributions ==== ==== Building on Other Distributions ====
  
-If you are building on another distribution, you will need to patch the files by hand. Enter the Qt 4.8 source directory and run a command of the following form on each of the patches in ascending numerical order; for example:+If you are building on another distribution, you will need to patch the files by hand. 
 +Enter the Qt 4.8 source directory and run a command of the following form on each of the patches in ascending numerical order; for example:
  
 <code> <code>
Line 73: Line 72:
  
 Diana is typically only built for batch use on headless systems since the GUI is only useful when there is an attached display. This means that only the ''bdiana'' tool is built. The ''debian_bdiana'' directory supplied with the Diana sources contains information about the dependencies required for this configuration (in the ''control'' file) and the commands required to configure and build ''bdiana'' (in the ''rules'' file). Diana is typically only built for batch use on headless systems since the GUI is only useful when there is an attached display. This means that only the ''bdiana'' tool is built. The ''debian_bdiana'' directory supplied with the Diana sources contains information about the dependencies required for this configuration (in the ''control'' file) and the commands required to configure and build ''bdiana'' (in the ''rules'' file).
 +
 +Packages compiled for headless systems are available from the [[https://launchpad.net/~met-norway/+archive/ubuntu/metapps|MET Norway PPA]] for some ubuntu releases.
 +
 +==== Building on Other Distributions ====
  
 Only a subset of the libraries mentioned on the [[autotools|Building Metlibs and Diana with Autotools]] page are required. Follow the instructions there to build and install Fimex and the miLogger, puCtools, puTools, miRaster and diField libraries. Only a subset of the libraries mentioned on the [[autotools|Building Metlibs and Diana with Autotools]] page are required. Follow the instructions there to build and install Fimex and the miLogger, puCtools, puTools, miRaster and diField libraries.
Line 100: Line 103:
 sudo make install sudo make install
 </code> </code>
 +
 +===== Next Steps =====
 +
 +See the [[gettingstarted#installing_data_files|Installing Data Files]] section of the [[gettingstarted|Getting Started]] guide for instructions on how to install the data files that ''bdiana'' needs.
 +
 +//Optional:// See the [[python_bindings_for_diana_on_headless_systems|Python Bindings for Diana on Headless Systems]] for instructions on building software that can be used to create services based on Python and Diana.
  
  • diana/batch_diana_on_headless_systems.1396604840.txt.gz
  • Last modified: 2022-05-31 09:23:14
  • (external edit)