|
| 1 | +Summary: |
| 2 | +-------- |
| 3 | +AirInv is a C++ library of airline inventory management classes and |
| 4 | +functions, mainly targeting simulation purposes. |
| 5 | + |
| 6 | +Airinv makes an extensive use of existing open-source libraries for |
| 7 | +increased functionality, speed and accuracy. In particular the |
| 8 | +Boost (C++ Standard Extensions: http://www.boost.org) library is used. |
| 9 | + |
| 10 | + |
| 11 | +Getting and installing from the Fedora/CentOS/RedHat distribution: |
| 12 | +------------------------------------------------------------------ |
| 13 | +Just use Yum: |
| 14 | +yum -y install airinv-devel airinv-doc |
| 15 | + |
| 16 | +You can also get the RPM packages (which may work on Linux |
| 17 | +distributions like Novel Suse and Mandriva) from the Fedora repository |
| 18 | +(e.g., for Fedora 16, |
| 19 | +http://fr2.rpmfind.net/linux/fedora/releases/16/Everything/) |
| 20 | + |
| 21 | + |
| 22 | +Building the library and test binary from Git repository: |
| 23 | +---------------------------------------------------------------- |
| 24 | +The Sourceforge Git repository may be cloned as following: |
| 25 | +git clone ssh://air-sched.git.sourceforge.net/gitroot/air-sched/air-sched airinvgit |
| 26 | +cd airinvgit |
| 27 | +git checkout trunk |
| 28 | + |
| 29 | +Then, you need the following packages (Fedora/RedHat/CentOS names here, |
| 30 | +but names may vary according to distributions): |
| 31 | + * cmake |
| 32 | + * gcc-c++ |
| 33 | + * stdair-devel, airrac-devel, rmol-devel |
| 34 | + * boost-devel |
| 35 | + * zeromq-devel |
| 36 | + * readline-devel |
| 37 | + * soci-mysql-devel |
| 38 | + * python-devel |
| 39 | + * gettext-devel (optional) |
| 40 | + * doxygen, ghostscript, graphviz and tetex-latex (optional) |
| 41 | + * rpm-build (optional) |
| 42 | + |
| 43 | +Building the library and test binary from the tarball: |
| 44 | +------------------------------------------------------ |
| 45 | +The latest stable source tarball (airinv*.tar.gz or .bz2) can be found here: |
| 46 | +http://sourceforge.net/project/showfiles.php?group_id=261633 |
| 47 | + |
| 48 | +Then, as usual: |
| 49 | +* To configure the project, type something like: |
| 50 | + mkdir build && cd build |
| 51 | + cmake -DCMAKE_INSTALL_PREFIX=/home/user/dev/deliveries/airinv-0.2.0 \ |
| 52 | + -DWITH_STDAIR_PREFIX=/home/user/dev/deliveries/stdair-stable \ |
| 53 | + -DCMAKE_BUILD_TYPE:STRING=Debug -DINSTALL_DOC:BOOL=ON .. |
| 54 | +* To build the project, type: |
| 55 | + make |
| 56 | +* To test the project, type: |
| 57 | + make check |
| 58 | +* To install the library (libairinv*.so*) and the binary (airinv), |
| 59 | + just type: |
| 60 | + make install |
| 61 | +* To package the source files, type: |
| 62 | + make dist |
| 63 | +* To package the binary and the (HTML and PDF) documentation: |
| 64 | + make package |
| 65 | + |
| 66 | +Denis Arnaud (October 2011) |
| 67 | + |
0 commit comments