Changeset 77 for trunk/src/README


Ignore:
Timestamp:
Sep 29, 2005 10:21:05 PM (15 years ago)
Author:
dkearney
Message:
  1. initial checkin of RpLibrary? code, includes c++/c/fortran bindings
  2. minor modifications to makefiles to accommodate new code
  3. updated README in src to tell how to compile code in src and test
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/README

    r41 r77  
    11To compile the Rappture Library, the following must be done:
    22
    3 1) Adjust the Makefile.
     31)  Adjust the Makefile.
    44
    55    Change Makefile variables as needed. Pay particular attention to
     
    1010    above this directory.
    1111
    12 2) Adjust the file 'include/cee/rappture_interface.h'
     12    Check the Following variables:
     13       
     14        PY_SRC_HEADERS  = /opt/rappture/include/python2.4
     15        EMB_PY_LIB_FLAG = -lpython2.4
     16        EMB_PY_LIB_DIR  = /opt/rappture/lib
    1317
    14     Line 1 of rappture_interface.h includes 'python2.4/Python.h'.
    15     Make sure this file (and all of its supporting files) exist
    16     in the directory 'include/cee/'. Replace 'python2.4/Python.h'
    17     with the version of python being used and the location where
    18     Python.h can be found. Python.h and all of its suppoting files
    19     can be downloaded from http://www.python.org/download/. You
    20     will only need the header files to fulfill this task.
    21     If you do not have a python object library, you will need to
    22     compile python with the appropriate flags (--enable-shared) to
    23     get it.
    24    
    25 3) Make sure the Rappture module is installed in Python.
     18        # tell make where to find the libscew sources
     19        SCEW_HEADERS    = /opt/rappture/include/scew
     20        LIB_SCEW_INCL   = -I $(SCEW_HEADERS)
     21        LIB_SCEW_FLAG   = -L/opt/rappture/lib -lscew
    2622
    27 4) Make a library
    28    
    29     make librappture
     23        # define the top of our directory structure
     24        # replace this with the full path of the directory
     25        # containing the rappture directory
     26        TOP_DIR
    3027
    31 5) Make the Rappture Test programs
     28        CFLAGS         
    3229
    33     make test
     302) Make the Rappture library
     31
     32    To make the Rappture Library, you will need to make sure the Scew
     33    library header files are installed and the makefile variable
     34    SCEW_HEADERS is properly defined. The following scew related header
     35    files must be available in the library search path, preferably in
     36    same directory as the scew header files.
     37
     38     |  Header File Name  |   Provider   |
     39    -+--------------------+--------------+-
     40     |   xelement.h       | scew source  |
     41     |   xattribute.h     | scew source  |
     42     |   xerror.h         | scew source  |
     43    -+--------------------|--------------+-
     44     |   attribute.h      | scew source  |
     45     |   element.h        | scew source  |
     46     |   error.h          | scew source  |
     47     |   parser.h         | scew source  |
     48     |   scew.h           | scew source  |
     49     |   str.h            | scew source  |
     50     |   tree.h           | scew source  |
     51     |   writer.h         | scew source  |
     52    -+--------------------+--------------+-
     53     |   expat.h          | expat source |
     54     |   expat_external.h | expat source |
     55    -+--------------------+--------------+-
     56
     57    Once You've verified that these header files are available,
     58    issue the following commands:
     59        cd rappture/src
     60        make
     61
     623)  Installing Python's Rappture.Units module.
     63        cd rappture/python
     64        python setup.py install
     65
     664)  Make the Rappture Test programs
     67        cd rappture/test
     68        make
Note: See TracChangeset for help on using the changeset viewer.