[21] | 1 | To compile the Rappture Library, the following must be done: |
---|
| 2 | |
---|
[77] | 3 | 1) Adjust the Makefile. |
---|
[21] | 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 | |
---|
[77] | 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 |
---|
[21] | 17 | |
---|
[77] | 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 |
---|
[21] | 22 | |
---|
[77] | 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 |
---|
[41] | 27 | |
---|
[77] | 28 | CFLAGS |
---|
[41] | 29 | |
---|
[77] | 30 | 2) 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 | |
---|
| 62 | 3) Installing Python's Rappture.Units module. |
---|
| 63 | cd rappture/python |
---|
| 64 | python setup.py install |
---|
| 65 | |
---|
| 66 | 4) Make the Rappture Test programs |
---|
| 67 | cd rappture/test |
---|
| 68 | make |
---|