Changeset 3041 for trunk/psLib/src/mainpage.dox
- Timestamp:
- Jan 18, 2005, 11:43:28 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/mainpage.dox (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mainpage.dox
r3040 r3041 7 7 psLib. The intended use is to provide a set of basic software functions in which 8 8 can be used throughout the Pan-STARRS project to simplify programming tasks. Among 9 the benefits are: 10 - Reuse of code 11 - Simplification of testing 12 - Streamlining of code 13 - Isolation of functionality that may be subject to change 9 the benefits are: 10 - Reuse of code 11 - Simplification of testing 12 - Streamlining of code 13 - Isolation of functionality that may be subject to change 14 14 15 15 The capabilities provided by psLib are grouped into the following areas which are … … 21 21 - Astronomy 22 22 23 This list is sorted in hierarchical order: The later entries depend on the functions and 23 This list is sorted in hierarchical order: The later entries depend on the functions and 24 24 data types of the earlier entries. 25 25 26 The installed code for psLib consists of header files and binary libraries in 27 the form of static (libpslib.a) and shared (libpslib.so or libpslib.dylib, 28 depending on operating system.) Assuming these components have been built and 29 installed in the standard library path, psLib may be used within a program by 26 The installed code for psLib consists of header files and binary libraries in 27 the form of static (libpslib.a) and shared (libpslib.so or libpslib.dylib, 28 depending on operating system.) Assuming these components have been built and 29 installed in the standard library path, psLib may be used within a program by 30 30 including the line #include <pslib.h> and linking using the '-lpslib' option 31 31 while linking. … … 34 34 @section extinstall Required 3rd Party Libraries 35 35 36 Before building psLib from source, several 3rd party software libraries must 37 be installed. These include: 36 Before building psLib from source, several 3rd party software libraries must 37 be installed. These include: 38 38 - GNU Scientific Library (GSL) 39 39 - Available at http://www.gnu.org/software/gsl 40 40 - Compatibility tested with version is 1.4 41 - Fastest Fourier Transform in the West (FFTW), version 3 41 - Fastest Fourier Transform in the West (FFTW), version 3, with single-precison float support 42 42 - Available at http://www.fftw.org 43 43 - Compatibility tested with version is 3.0.1 44 - The '--enable-float' option is required in the configure step to enable single-precision float support. Use 'configure --help' for more information of the configuration options for this library. 44 45 - C Flexible Image Transport System Input output (CFITSIO), version 2.480 or later 45 46 - Available at http://heasarc.gsfc.nasa.gov/docs/software/fitsio … … 50 51 - Compatibility tested with version 1.3.6 51 52 - The optional companion package, GraphViz (a.k.a., the 'dot' command), is recommended to enable header-file dependency diagrams 52 - SLALIB 53 - SLALIB 54 - Available at http://star-www.rl.ac.uk/ 55 - Compatibility tested with package version number 2.4-12 53 56 - We tested with the Fortran version of the library; this may cause an additional step to get things to link on untested systems/compilers, as there is no one standard for how the function-names appear in the library to C code. The default way that psLib uses is all-lower case with a trailing '_', but one may need to add to CFLAGS in src/Makefile.Globals the following: 54 57 - '-DFORTRAN_UNDERSCORE_PREFIX' if a '_' needs to be prefixed to the function names, 55 58 - '-DFORTRAN_DOUBLE_UNDERSCORE_SUFFIX' if two the names needs two trailing '_'s., and/or 56 59 - '-DFORTRAN_UPPERCASE' if the names appear as uppercase. 57 - Available at http://star-www.rl.ac.uk/58 - Compatibility tested with package version number 2.4-1259 60 - Gnome XML C parser and toolkit (libxml2) 60 61 - Available at http://www.xmlsoft.org 61 62 - Compatibility tested with version 2-2.6.16-3 62 63 63 We recommend using the particular versions listed as compatibility tested, as 64 that is the only versions of the external libraries tested to work well with psLib. 65 Though it is quite possible that later versions of the libraries listed will also 64 We recommend using the particular versions listed as compatibility tested, as 65 that is the only versions of the external libraries tested to work well with psLib. 66 Though it is quite possible that later versions of the libraries listed will also 66 67 work as well, care must be taken when upgrading these libraries to verify that its 67 68 functionality is compatible with the tested version. … … 79 80 https://mhpcc.pan-starrs.org/code/snapshots 80 81 81 These snapshots represents development code as found in CVS on the day 82 These snapshots represents development code as found in CVS on the day 82 83 specified in the filename. This code set may not be functional, vary in 83 testing, etc. Reasonable efforts are made to ensure that the code does 84 actually compile, but given the nature of code development, even that is not 84 testing, etc. Reasonable efforts are made to ensure that the code does 85 actually compile, but given the nature of code development, even that is not 85 86 always the case. Use snapshots with great caution. 86 87 87 If one has a login account on mhpcc.pan-starrs.org, direct CVS access is 88 If one has a login account on mhpcc.pan-starrs.org, direct CVS access is 88 89 possible. Example of the commands required for direct CVS retrieval are 89 90 as follows: … … 93 94 where: 94 95 - USERNAME is your login name on the server 95 - RELEASEBRANCH is the desired release branch, e.g. rel1, rel2, etc.96 96 - RELEASEBRANCH is the desired release branch, e.g. rel1, rel2, rel3, or rel4. 97 97 98 98 99 @section build How to Build the psLib library 100 99 101 100 102 The source should build using the Makefile in the psLib/src directory. The … … 107 109 <i>This builds and installs files to psLib/lib and psLib/include.</i> 108 110 111 The make system of psLib allows users to specify specific locations for some of the 112 third party libraries (see "Required 3rd Party Libraries" for a list). If 113 a location is not specified, the cooresponding library is assumed to be in 114 the standard library paths, e.g., /usr or /usr/local. The following are the 115 environment variables that can be set before the make process above to force 116 the location of the third-party libraries: 117 - sladir: Location of SLALIB 118 - e.g., <pre>export sladir=/usr/local/star</pre> 119 - xml2config: Location of the xml2-config configuration executable 120 - e.g., <pre>export xml2config=/usr/bin/xml2-config</pre> 121 122 Also, the installation location of the library can be set using environment 123 variables. The following are the supported variables for installation: 124 - prefix: the installation prefix (default: current psLib directory) 125 - e.g., <pre>export prefix=/usr/local</pre> 126 - mandir: The man page installation location (default: $prefix/man) 127 - includedir: The installation location for the header files (default: $prefix/include) 128 - testbindir: Location for the test executables (default: $prefix/testbin) 129 - libexecdir: Location for the library files (default: $prefix/lib) 130 - TIME_CONFIG_FILE: Location of the 'psTime.config' configuration file (default: $(prefix)/config/psTime.config) 109 131 110 132 @section run How to Build and Run Tests 111 133 112 Since psLib is a library, there is no executable, per se. However, to test the 134 Since psLib is a library, there is no executable, per se. However, to test the 113 135 installation, users may execute the unit test suite. To build the unit test 114 136 suite, do the following: … … 141 163 @section doc How to Create Code Documentation 142 164 143 Both HTML and man page documentation may be generated from the inline 165 Both HTML and man page documentation may be generated from the inline 144 166 documentation embedded in the code using the following commands: 145 167 <pre> … … 149 171 <i>This places documentation in psLib/docs.</i> 150 172 151 Also, a prebuilt set of code documentation for both the releases and last 173 Also, a prebuilt set of code documentation for both the releases and last 152 174 CVS snapshot can be found at: 153 175
Note:
See TracChangeset
for help on using the changeset viewer.
