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

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

info compiling using mingw

File size: 2.9 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       
35GENERAL RUNNING
36To run all tests Harnesses;
37        python TestRunner.py
38       
39To run pmesh;
40        python pmesh.py
41       
42INSTRUCTIONS FOR USING PMESH
43
44Pmesh will let the user select various modes. The current
45allowable modes are vertex or segment.  The mode describes what sort
46of object is added or selected in response to mouse clicks.  When
47changing modes any prior selected objects become deselected.
48
49In general the left mouse button will add an object and the right
50mouse button will select an object.  A selected object can de deleted
51by pressing the the middle mouse button (scroll bar).
52
53NOTES
54I have examples of running triangle in
55 nautilus /home/duncan/MeshGen/triangle_old
56
57CREATING A PMESH EXECUTABLE
58
59There is a package called py2exe which can take a Python script and
60package it up along with any other scripts it imports and a Python
61interpreter into a single .exe. It will also find any DLLs your script
62depends on and copy them too.
63
64The packaging process:
65
66
671)Install py2exe. This only needs to be done once on a machine.
68
692)Make a static version of Pmw. Pmesh uses a package called Pmw which
70normally dynamically loads pieces of itself as needed. This doesn't
71work with py2exe, so we need to fix it. You'll only need to do this
72once; if you make a change to your script and
73repackage you can skip this step.
74
75  cd to c:\python22\lib\site-packages\Pmw\Pmw_1_1\bin. (Assuming python
76  is installed in the default c:\python22; change the paths if you
77  installed Python somewhere else.
78
79  run "python bundlepmw.py
80  c:\python22\lib\site-packages\Pmw\Pmw_1_1\lib". This will create a
81  file called "Pmw.py" in the current directory.
82
83  copy "Pmw.py" to your main script directory.
84
85  copy "..\lib\PmwBlt.py" and "..\lib\PmwColor.py" to your main script
86  directory, too.
87
883) 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.