source: inundation/ga/storm_surge/pmesh/README @ 1599

Last change on this file since 1599 was 1476, checked in by duncan, 19 years ago

more compile info

File size: 3.1 KB
Line 
1SYSTEM REQUIREMENTS
2 
3Python, with Pmw must be installed to use pmesh.  Read the
4starting.html file that comes with pmw with regrads to how it is
5installed.(quick install advice: install pmw in the
6python2.2/site-packages dir) (Python and pmw are in the downloads
7directory)
8
9INSTALLATION COMMANDS, FOR LINUX
10
11This is necessary to complite triangle for using pmesh graphically and
12the pmesh.mesh script.
13       
14To build triangle, as root;
15        python setup.py install
16       
17To build the python package, as a user;
18        python setup.py install --prefix=~
19       
20        This will create a python directory, off the users home directory.
21        Add the path of this directory into your .bashrc
22        for example;   
23        export PYTHONPATH=$HOME/lib/python2.2/site-packages:"${PYTHONPATH}"
24        another example;
25        export PYTHONPATH=$HOME/lib64/python2.3/site-packages:"${PYTHONPATH}"
26
27INSTALLATION COMMANDS, FOR WINDOWS
28To compile using Microsoft Visual c++,
29        python setup.py install
30
31To compile using mingw,
32        python setup.py build -cmingw32
33        python setup.py install
34
35        Note for this to work mingw has to be installed.  Plus move
36        the file libpython23.a into the python\libs directory.  If
37        'install' does not work move the triang.pyd file manually.
38               
39GENERAL RUNNING
40To run all tests Harnesses;
41        python TestRunner.py
42       
43To run pmesh;
44        python pmesh.py
45       
46INSTRUCTIONS FOR USING PMESH
47
48Pmesh will let the user select various modes. The current
49allowable modes are vertex or segment.  The mode describes what sort
50of object is added or selected in response to mouse clicks.  When
51changing modes any prior selected objects become deselected.
52
53In general the left mouse button will add an object and the right
54mouse button will select an object.  A selected object can de deleted
55by pressing the the middle mouse button (scroll bar).
56
57NOTES
58I have examples of running triangle in
59 nautilus /home/duncan/MeshGen/triangle_old
60
61CREATING A PMESH EXECUTABLE
62
63There is a package called py2exe which can take a Python script and
64package it up along with any other scripts it imports and a Python
65interpreter into a single .exe. It will also find any DLLs your script
66depends on and copy them too.
67
68The packaging process:
69
70
711)Install py2exe. This only needs to be done once on a machine.
72
732)Make a static version of Pmw. Pmesh uses a package called Pmw which
74normally dynamically loads pieces of itself as needed. This doesn't
75work with py2exe, so we need to fix it. You'll only need to do this
76once; if you make a change to your script and
77repackage you can skip this step.
78
79  cd to c:\python22\lib\site-packages\Pmw\Pmw_1_1\bin. (Assuming python
80  is installed in the default c:\python22; change the paths if you
81  installed Python somewhere else.
82
83  run "python bundlepmw.py
84  c:\python22\lib\site-packages\Pmw\Pmw_1_1\lib". This will create a
85  file called "Pmw.py" in the current directory.
86
87  copy "Pmw.py" to your main script directory.
88
89  copy "..\lib\PmwBlt.py" and "..\lib\PmwColor.py" to your main script
90  directory, too.
91
923) Do the command "python exesetup.py py2exe"  This will create a dist directory with the pmesh executable.
Note: See TracBrowser for help on using the repository browser.