·Home· ·About· ·Development· ·Support/FAQ· ·Services· ·Careers·


O.P.P.

Stable: 0.2.5
Development: 0.3

OPP 0.2.5 Installation Instructions

This page contains installation instructions for OPP 0.2.5. See install.html for OPP 0.3 installation instructions.

More information about OPP is available by following the links at the top of the page.

Page Index

Requirements
Configure
Build
Install
Use

Requirements

OPP 0.2.5 has only been tested on Linux, but has been reported to work on Solaris and other UNIX operating systems with at most minor changes.

OPP 0.2.5 requires gcc versions egcs 2.91.66 or gcc 2.95.x. OPP 0.2.5 probably doesn't work with gcc 3.

OPP requires GNU make.

Configure

For now, you must modify config.h to identify the flags and location of your compiler. The defaults are appropriate for building with optimization using gcc or egcs installed as /usr/bin/gcc and /usr/bin/c++.

Build

Building OPP is as simple as typing make inside the top level directory.

OPP uses an automagic dependency calculator derived from the GNU make documentation. This dependency calculator has three problems and will be removed or fixed in a future release. The problems are:

  1. Leaves the source directories filled with '*.d' files.
  2. The build fails with an error if an include file is deleted or renamed and at least one '.d' file still references it. Even a 'make clean' will fail when this happens.
  3. It can sometimes lead to what appears to be an infinite loop. This can happen when a tar file of the source code is created and moved from one machine to another with a different system time. Make will continue to remake the dependencies because it continues to believe that they are out of date (the timestamp on the source code is newer than the system time). The loop will eventually terminate when the system time hits the source code timestamps.

You can do 'make' to make the library, and 'make install' to 'install' it (to the opp/lib subdirectory).

Install

OPP 0.2.5 must be used out of the same directory that it is built in. The 'make install' option is required, but will not install OPP outside of the build directory.

Use

Add the following lines to your application makefile:

OPPHOME=destdir
include $OPPHOME/config.h
where destdir is the directory where you installed OPP.

Also add linker options to include each OPP package that your application uses.

See the example programs or test drivers included with OPP.


Modified Sun Jan 13 19:37:26 EST 2002

Copyright 2002, Odin Consulting, Inc. This document may be freely redistributed in its entirety so long as this copyright notice remains in place.