Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
diana:batch_diana_on_headless_systems [2015-01-16 14:10:44] davidb [Building Qt] |
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 | + | We build an alternative set of Qt libraries using the standard Qt 4.8 sources, |
+ | applying some patches and using an " | ||
- | The patches we use are part of the Debian packaging we use to build packages for Ubuntu 12.04. These can be obtained from a git repository using either of the following two commands: | + | Packages were built with Qt4 versions |
+ | * 4.8.1 | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
- | < | + | 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:// | + | These can be obtained from [[https:// |
- | git clone https:// | + | |
- | </ | + | |
- | The standard Debian package building process involves applying the patches found in the '' | + | git clone https:// |
+ | # the branch | ||
+ | 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 '' |
- | + | ||
- | If you are building on a Debian derived distribution, you can simply | + | |
- | + | ||
- | < | + | |
- | debuild -sa -uc -us | + | |
- | </ | + | |
- | Note that, if you use the distribution' | + | Packages for some ubuntu releases are available from the [[https:// |
- | 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, | + | If you are building on another distribution, |
+ | 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: | ||
< | < | ||
Line 74: | 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 '' | 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 '' | ||
+ | |||
+ | Packages compiled for headless systems are available from the [[https:// | ||
+ | |||
+ | ==== 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 107: | Line 109: | ||
// | // | ||
+ |