source: trunk/src/README @ 2209

Last change on this file since 2209 was 77, checked in by dkearney, 19 years ago
  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 size: 2.5 KB
Line 
1To compile the Rappture Library, the following must be done:
2
31)  Adjust the Makefile.
4
5    Change Makefile variables as needed. Pay particular attention to
6    compilers, CFLAGS, directory names, and where python components
7    are located. Make sure you change the variable 'EMB_PY_FLAGS'
8    to point to the location of the python shared (or static) object
9    library is located. It can be placed in the lib directory directly
10    above this directory.
11
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
17
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
22
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
27
28        CFLAGS         
29
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 TracBrowser for help on using the repository browser.