<- Introduction Simple Usage ->

Downloading and Building osgEphemeris

The current build is tested solely on Linux. As most osg components, osgEphemeris should port easily to Windows and other platforms with little effort. Contributions are welcome.

Downloading osgEphemeris

Current access to osgEphemeris is through cvs on openscenegraph.org:


cvs -d :pserver:cvsguest@openscenegraph.org:/cvs/osg co osgEphemeris

Building osgEphemeris on Linux

Prerequisite: DWMake

A prerequisite for building osgEphemeris is DWMake. DWMake is a simple set of GNU makefile definitions and rules for a set of common targets. Instructions for getting and installing DWmake follow

DWMake is also available through CVS:


cvs -d :pserver:cvsguest@openscenegraph.org:/cvs/DWMake co DWMake

To build all projects using DWMake a global environmental variable DWMAKE needs to be defined, which points to the top level directory where DWMake is installed. If you've just run the cvs command above, then the following applies:

For CSH:

% cd DWMake
% setenv DWMAKE `pwd`


For SH or BASH:

$ cd DWMake
$ export DWMAKE=`pwd`


You may want to add these to your .profile, .bashrc, or .cshrc, whichever is appropriate.

Building osgEphemeris

Once you have DWMake installed and the DWMAKE environmental variable defined, it is just a matter of typing make in the osgEphemeris directory:


% cd osgEphemeris
% make


Installing osgEphemeris

By default osgEphemeris installes in /usr/local. You may install in other locations by using the directive INST_LOCATION:


% make install
OR
% make INST_LOCATION=/usr install

The above command will install the include/osgEphemeris directory in INST_LOCATION/include, the library libosgEphemeris.so in INST_LOCATION/lib and the plugin osgdb_osgEphemerisModel.so in INST_LOCATION/lib/osgPlugins.


<- Introduction Simple Usage ->