IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1044


Ignore:
Timestamp:
Jun 15, 2004, 9:35:14 AM (22 years ago)
Author:
desonia
Message:

updated the instructions for release 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel1/psLib/src/mainpage.dox

    r1036 r1044  
    1 /** @mainpage psLib Image Processing Library
     1/** @mainpage psLib Image Processing Library - Release 1
    22
    33
    44@section intro Introduction
    55
    6 This library contains the Pan-STARRS Image Processing Pipeline (IPP) toolkit,
    7 psLib. The intended use is to provide a library of basic software functions which
    8 can be used throughout the Pan-STARRS project to simplify programming tasks. Among
    9 the benefits are: reuse of code, simplification of testing, streamlining of code,
    10 and isolation of functionality that may be subject to change.     
     6This library contains the Pan-STARRS Library, "psLib". The intended use is to
     7provide a set of basic software functions which can be used throughout the
     8Pan-STARRS project to simplify programming tasks. Among the benefits are:
     9<ul>
     10<li>reuse of code</li>
     11<li>simplification of testing</li>
     12<li>streamlining of code, and</li>
     13<li>isolation of functionality that may be subject to change.</li>
     14</ul>     
    1115
    12 The capabilities provided by psLib are grouped into the following areas which are
    13 also reflected in the file system directory structure:
    14  - System Utilities
    15  - Data Collections
    16  - Data Manipulation
     16The capabilities provided by psLib are grouped into the following areas which
     17are also reflected in the source files' directory structure:
     18<ul>
     19<li>System Utilities</li>
     20<li>Data Collections</li>
     21<li>Data Manipulation</li>
     22</ul>
    1723
    18 This list is sorted in hierarchical order: The later entries depend on the functions and
    19 data types of the earlier entries.
     24This list is sorted in hierarchical order: The later entries depend on the
     25functions and data types of the earlier entries.
    2026
    21 The installed code for psLib consists of header files and binary libraries in the form of static
    22 (libpslib.a) and shared (libpslib.so or libpslib.dylib for OX/X.) Assuming these components
    23 have been built and installed in the standard library path, psLib may be used within a program by
    24 including the line #include <pslib.h> and linking with -lpslib.
    25 
     27The installed code for psLib consists of header files and binary libraries
     28in the form of static (libpslib.a) and shared (libpslib.so or libpslib.dylib
     29depending on the operating system). Assuming these components have been built
     30and installed in the standard library path, psLib may be used within a program
     31by including the pslib.h header in your C file and linking with -lpslib.
    2632
    2733
    2834@section extinstall Required 3rd Party Libraries
    2935
    30 Before building psLib from source, several 3rd party software libraries must be installed.
    31 These include:
    32  - GNU Scientific Library (GSL), Available at http://www.gnu.org/software/gsl
    33  - Fastest Fourier Transform in the West (FFTW), Available at http://www.fftw.org
    34  - C Flexible Image Transport System Input output (CFITSIO), Available at http://heasarc.gsfc.nasa.gov/docs/software/fitsio
     36Before building psLib from source, several 3rd party software libraries must
     37be installed. These include:
     38<ul>
     39<li>GNU Scientific Library (GSL), version 1.4</li>
     40<ul><li>Available at http://www.gnu.org/software/gsl</li></ul>
     41<li>Fastest Fourier Transform in the West (FFTW), version 3.0.1</li>
     42<ul><li>Available at http://www.fftw.org</li></ul>
     43<li>C Flexible Image Transport System Input output (CFITSIO), version 2.4.9
     44<ul><li>Available at http://heasarc.gsfc.nasa.gov/docs/software/fitsio</li></ul>
     45</ul>
    3546
    36 If you use a Darwin (Mac OS X) system, a dlfcn compatability library needs to be
    37 installed on the system. This can be obtained from the Fink project on SourceForge
    38 (the dlcompat package at http://www.sf.net/projects/fink). The Darwin 7.0 (OS X 10.3)
    39 'devtools' package seems to also include dlfcn support, so explicit installation of a
    40 dlfcn compatibility layer may not be required for this version of Darwin.
     47If you use a Macintosh OS X 10.2 or earlier system, a dlfcn compatability
     48library may need to be installed on the system. This can be obtained from the
     49Fink project on SourceForge (the dlcompat package at http://www.sf.net/projects/fink).
     50The Darwin 7.0 (OS X 10.3) 'devtools' package includes dlfcn support, so
     51explicit installation of a dlfcn compatibility layer may not be required for
     52this version of Darwin with the devtools package installed.
    4153
    4254
    43 @section install How to Build from Source
     55@section obtain How to Obtain the Code
    4456
    45 The psLib code should to be downloaded from either the tar file posted on:
    46 https://gforge.mhpcc.hawaii.edu/projects/panstarrs/ or directly from the CVS server
    47 with the following command:
     57The psLib code should to be downloaded from either the tar files posted the
     58MHPCC webserver or CVS. 
     59
     60 
     61https://mhpcc.pan-starrs.org/cgi-bin/viewcvs.cgi/releases/rel1 or CVS. 
     62
     63Via the web server, point your browser to https://mhpcc.pan-starrs.org/cgi-bin/viewcvs.cgi/releases/rel1.
     64There are two files available there:
     65<ul>
     66<li>pslib-rel1-src.tar.gz</li>
     67<ul><li>The source package - equivalent to getting the source from the CVS via export.</li></ul>
     68<li>pslib-rel1-linux-x86.tar.gz</li>
     69<ul><li>The binary package - precompiled for x86 Linux machines.  Contains
     70prebuilt libraries, documentation, and test suite.</li></ul>
     71</ul>
     72
     73Download the appropriate package for your needs and untar the files where
     74one sees fit.
     75
     76To obtain the source directly from the CVS server with the following command:
    4877<pre>
    49 $ cvs -d:ext:username@gforge.mhpcc.hawaii.edu:data/panstarrs/cvsroot co -P psLib
     78$ export CVS_RSH=ssh
     79$ cvs -d:ext:username@mhpcc.pan-starrs.org:/data/panstarrs/cvsroot export -r rel1_1 psLib
    5080</pre>
     81This requires having an SSH login account on mhpcc.pan-starrs.org.
    5182
    52    
    53 The source should build from the Makefile in the psLib/src directory.  The
    54 recommended steps are:
     83
     84@section build How to Build from Source Code
     85
     86Once the release package is obtained, the library should build from the
     87Makefile in the psLib/src directory.  The recommended steps are:
    5588<pre>
     89$ cd psLib/src
    5690$ make
    5791$ make install
    5892</pre>
    59 <i>This builds and installs files to psLib/lib and psLib/include.</i>
     93This builds the library and installs files to psLib/lib and psLib/include.
    6094
    6195
    62 @section run How to Run Tests
     96@section buildTests How to Build the Tests
    6397
    64 Since psLib is a library, there is no executable, per se. However, to test the installation, users
    65 may execute the FullUnitTest script:
     98Since psLib is a library, there is no executable, per se. However, to test
     99the installation and functionality, users may create a suite of unit tests
     100with the following steps:
    66101<pre>
    67102$ cd psLib/test
    68103$ make
    69104$ make install
    70 $ FullUnitTest
     105$ make installtests
    71106</pre>
    72 <i>This builds and executes test files for each of the psLib functional areas.</i>
     107This builds and installs test files for each of the psLib functional areas
     108into the psLib/bin/test directory.
    73109
     110
     111@section runTests How to Run the Unit Tests
     112
     113To execute the unit test suite, after building them, users may use the
     114following steps:
     115<pre>
     116$ cd psLib/bin/test
     117$ ./FullUnitTest
     118</pre>
     119One can also run individual test executables, which concentrate on a logical
     120set of functionality of the library, via the 'runTest' script in the bin/test
     121directory or by executing the test from the shell.  If running the test directly
     122in the shell, make sure that the LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH if on the
     123Macintosh) contains the path to the psLib/lib directory.
    74124
    75125@section doc How to Create Documentation
     
    80130$ make docs
    81131</pre>
    82 <i>This places documentation in psLib/docs.</i>
     132This places the Doxygen generated documentation in psLib/docs.
    83133
    84134*/
Note: See TracChangeset for help on using the changeset viewer.