-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
executable file
·145 lines (87 loc) · 3.38 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
//////////////////////////////////////////////
Git instruction
//////////////////////////////////////////////
# per creare una copia locale del respository (cambiare il nome utente!)
git clone ssh://<your username>@plm.dia.uniroma3.it/home/git/pyplasm
git add ...
git rem ...
git commit -a
# per fare il commit, dopo aver effettuato i cambiamenti
git push
//////////////////////////////////////////////
Windows compilation (Visual Studio 2010!)
//////////////////////////////////////////////
(*) Open the project ./pyplasm.sln
(*) From the "Build menu" select "Batch Build"
(*) Click the "Select All" button
(*) Click the "Build" button
(*) openg a cygwin shell (http://www.cygwin.com/ you need to have the Makefile tools installed) and type:
cd <the/directory/containing/this/README/file>
make install
(*) in distrib/win32/pyplasm there will be the self-contained package for Python 2.6
To install it copy all files and directories:
distrib\win32\pyplasm\* -> C:\Python26\Lib\site-packages\pyplasm\*
(*) To test PyPlasm , open a MSDOS prompt and type:
c:\Python26\python.exe
from pyplasm import *
c=CUBOID([1,1,1])
VIEW(c)
quit()
(*) to run some other tests, from a MSDOS prompt type:
c:\Python26\python.exe C:\Python26\Lib\site-packages\pyplasm\examples.py
////////////////////////////////////////////
Linux compilation (tested on Ubuntu 2.6.32-24-generic)
////////////////////////////////////////////
(*) install FreeImage developer library
sudo apt-get install libfreeimage3
subo apt-get install libfreeimage-dev
(*) install python2.6 (the version number is important)
sudo apt-get install python2.6
sudo apt-get install python2.6-dev
(*) open a bash shell and type
cd <the/directory/containing/this/Readme/file>
make clean
make
sudo make distrib-linux
NOTE: If JUCE is complaining about a missing library install them: sudo apt-get install <package_name>
(*) To test the PyPlasm distribution, type:
export LD_LIBRARY_PATH=$(pwd)/src/xge
python
from pyplasm import *
c=CUBOID([1,1,1])
VIEW(c)
quit()
(*) to run some other tests, type:
export LD_LIBRARY_PATH=$(pwd)/src/xge
python /usr/lib/python2.6/dist-packages/pyplasm/examples.py
(*) (OPTIONAL, only for DEBUGGING) if you want to run the self test procedure xgemain
export LD_LIBRARY_PATH=$(pwd)/src/xge
./src/xgemain/xgemain
////////////////////////////////////////////
MacOSX compilation
////////////////////////////////////////////
(*) please use Python 2.6 coming with your MacOsxÉ the python.org latest version (2.7) crashes
(*) make sure that from a shell python is version 2.6
python --version
(*) Install PyOpenGL
tar -zxvf PyOpenGL-3.0.1.tar.gz
cd PyOpenGL-3.0.1
python setup.py install
(*) edit the Makefile.inc (read the comments)
(*) open a bash shell and type
cd <the/directory/containing/this/Readme/file>
export PATH=$PATH:/Developer/usr/bin # optional
make clean
make
sudo make install
(*) To test the PyPlasm distribution, type:
python
from pyplasm import *
c=CUBOID([1,1,1])
VIEW(c)
quit()
(*) to run some other tests, type:
python /Library/Python/2.6/site-packages/pyplasm/examples.py
(*) (OPTIONAL, only for DEBUGGING) if you want to run the self test procedure xgemain
export DYLD_LIBRARY_PATH=$(pwd)/src/xge
./src/xgemain/xgemain