Installation

How to Get Quantities

Download the code of Quantities from the sourceforge web site through project Quantity, where both packages and cvs development code are provided.

The packages represent complete stages of the software development. After installation they should work without major problems, although these can never be excluded totally.

The cvs code is under development. New versions are uploaded frequently. Although it does contain additional features, it must also be expected that there are major bugs. Thus, the cvs code should only be downloaded by experienced users. Please report any bugs that you find to the author.

For both, packages and cvs code, you will need the Quantities and the BSUtilities software. The latter does provide some basic utility functions.

Prerequisites for the Installation

Quantities was developed with gcc version 3.2 or later. The use of the gcc compiler for installation of Quantities is recommended. More recent versions of the compiler may be needed. The current version of Quantities was used with gcc up to version 4.3.2.

You need the Boost library, which is included in most modern Linux installations. Sometimes this library is located in a standard directory (e.g. /usr/include). However, you may have it installed in a different place on your file system. You will have to define the location of your Boost library and header files as discussed below. Various versions starting with 1.33.1 up to 1.34.1 were used successfully for the development of Quantities. Boost version 1.35.0 fails to compile with the code, and produces `multiple definition' errors, when more than one export header is included. Version 1.34.1. is recommended.

At least some parts of the Boost C++ library have to be installed (the filesystem, date_time, and serialization libraries are essential; add --with-libraries=filesystem,date_time,serialization to the configure flags if you compile Boost from source; note that other software that uses Quantities may need additional Boost libraries).

You need to have installed A. Alexandrescu's Loki library. Versions up to 0.1.7 were used for development. Make sure that you use the library (libloki) generated by the Loki make process, since the *.cpp files of the Loki code are not added to the Makefiles of Quantities (for pertinent details, see Loki README): Unpack the Loki tar-ball in a directory of your choice. Go to subdirectory loki-x.y.z (with x, y, and z denoting the Loki version) and type make. After compilation, type make install. This will install the Loki headers in /usr/include/loki, and the Loki libraries (libloki.a, libloki.so; the latter is a link to libloki.so.x.y.z) in /usr/lib. Consequently, you will need to have write permission in these directories. If this is not the case, you need to edit the Loki Makefile or Makefile.common (variable prefix).

You need the utility tools in package BSUtilities (version >= 0.6.2). Download and install this package according to the instructions given in the BSUtilities documentation.

User Installation

Using the Test Programs

There are two types of test programs for Quantities:

At present, there is no automatic test procedure. Consequently, the various run-time test programs have to be executed one after the other. Also, the results of the compile-time test programs have to be checked by the installer. The command

make check
will compile the run-time test programs and also attempt to compile the compile-time test programs. The latter should all fail with a compiler or linker error message.

The following test programs are available:

Developer Installation

As a developer who downloaded the cvs version of Quantities, you have to create a configure script first. Autoconf, automake, and libtool must be installed.

Run

autoreconf --install

to generate the necessary files. See also the README file in <_source_directory_>.

back to Quantities start page


Generated on Mon Jul 27 15:55:45 2009 for Quantities by  doxygen 1.5.3