forked from jredmondson/gams
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
247 lines (179 loc) · 7.52 KB
/
INSTALL.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
For the most up-to-date information on installing GAMS, please see the wiki: https://github.com/jredmondson/gams/wiki/GAMS-Installation
How to Install GAMS on your system (must be done on each host)
0. Latest Version
1. Introduction
2. Prerequisites
o ACE
+ ACE download and install (Linux)
+ ACE download and install (Windows)
o Open Splice Community Edition
+ Windows
3. Installing MADARA
o Downloading the source
o Set environment variables
o Generate the Madara project for your system
o Compiling the Madara library on your system
4. Installing GAMS
o Downloading the source
o Set environment variables
o Generate the Madara project for your system
o Compiling the Madara library on your system
========================================================
0. Latest Version
This file may not be up-to-date.
Please see http://code.google.com/p/gams-cmu/wiki/Installation for the
latest version of this document.
========================================================
1. Introduction
This page shows you how to install the GAMS libraries on your system.
At this point we do not provide binaries for each system, so you will have
to compile the GAMSlibrary for your particular architecture.
========================================================
2. Prerequisites
You will need to download ACE and the associated MPC program (which is used
to generate Visual Studio workspaces or GNU makefiles for the Madara source code).
ACE
--------------------------------
ACE download and install (Linux)
* Set environment variables
export ACE_ROOT=/opt/ACE_wrappers
export TAO_ROOT=$ACE_ROOT/TAO
export LD_LIBRARY_PATH=$ACE_ROOT/lib:$TAO_ROOT/lib:$LD_LIBRARY_PATH
export PATH=$ACE_ROOT/bin:$TAO_ROOT/bin:$PATH
* Downloading ACE+TAO+CIA
svn co svn://svn.dre.vanderbilt.edu/DOC/Middleware/sets-anon/ACE+TAO+CIAO /opt/ace
cd $ACE_ROOT/ace
echo "#include \"ace/config-linux.h\"" > config.h
* Configuring and Generating Makefiles
cd $ACE_ROOT/include/makeinclude
echo "include \$(ACE_ROOT)/include/makeinclude/platform_linux.GNU" > platform_macros.GNU
cd $TAO_ROOT
$ACE_ROOT/bin/mwc.pl -type gnuace TAO_ACE.mwc
make
--------------------------------
ACE download and install (Windows)
* Set environment variables
ACE_ROOT=C:\ace\ACE_wrappers
TAO_ROOT=$ACE_ROOT\TAO
PATH=%ACE_ROOT%\lib;%TAO_ROOT%\lib;%ACE_ROOT%\bin;%TAO_ROOT%\bin;%PATH%
* Downloading ACE+TAO+CIA
svn co svn://svn.dre.vanderbilt.edu/DOC/Middleware/sets-anon/ACE+TAO+CIAO C:\ace
* Configuring and Generating VS Solutions
cd %ACE_ROOT%\ace
echo "#include \"ace/config-win32.h\"" > config.h
cd %TAO_ROOT%
-- if using Visual Studio 2005
%ACE_ROOT%/bin/mwc.pl -type vc8 TAO_ACE.mwc
-- if using Visual Studio 2008
%ACE_ROOT%/bin/mwc.pl -type vc9 TAO_ACE.mwc
-- if using Visual Studio 2010
%ACE_ROOT%/bin/mwc.pl -type vc10 TAO_ACE.mwc
* Open your Visual Studio solution (TAO_ACE.sln) and build the solution.
Open Splice Community Edition
--------------------------------
Linux
First, go ahead and setup the environment variables in your ~/.profile file
or wherever your operating system loads your environment variables from.
export OSPL_HOME=/opt/splice/HDE/x86.linux2.6
export OSPL_TARGET=x86.linux2.6
export OSPL_TMPL_PATH=$OSPL_HOME/etc/idlpp
export OSPL_URI=file://$OSPL_HOME/etc/config/ospl.xml
export LD_LIBRARY_PATH=$OSPL_HOME/lib:$LD_LIBRARY_PATH
export PATH=$OSPL_HOME/bin:$PATH
The following commands extract the Open Splice download to the /opt/splice
directory. Feel free to change this to whatever location you'd like splice to reside at:
cd /opt
wget http://www.opensplice.org/releases/downloads/releases/OpenSpliceDDSV5.2-x86.linux2.6-gcc344-gnuc23-HDE.tar.gz
mkdir /opt/splice
cd /opt/splice
tar xvf OpenSpliceDDSV5.2-x86.linux2.6-gcc344-gnuc23-HDE.tar.gz
Windows
* Download http://code.google.com/p/madara/downloads/detail?name=opensplice_community.zip
* Unzip the file to C:\
* Set the following environment variables
OSPL_HOME=C:\Splice\HDE\x86.win32
OSPL_TARGET=x86.win32
OSPL_TMPL_PATH=%OSPL_HOME%\etc\idlpp
OSPL_URI=file://%OSPL_HOME%\etc\config\ospl.xml
PATH=%OSPL_HOME%\bin;%OSPL_HOME%\lib;%PATH%
The zip file contains all the compiled libraries you will need on Windows
========================================================
3. Installing Madara
---------------------------------------
Downloading the source
* Download Madara to /opt/madara on a Linux box
svn checkout http://madara.googlecode.com/svn/trunk/ /opt/madara
* Download Madara to C:\madara on a Windows box
svn checkout http://madara.googlecode.com/svn/trunk/ C:\madara
---------------------------------------
Set environment variables
* First, make sure you setup ACE on your system and follow the installation
notes for setting environment variables for ACE.
* Next, set the following environment variable for Madara:
-- Linux
export MADARA_ROOT=/opt/madara
export LD_LIBRARY_PATH=$MADARA_ROOT/lib:$LD_LIBRARY_PATH
export PATH=$MADARA_ROOT/bin:$PATH
-- Windows
MADARA_ROOT=C:\madara
PATH=%MADARA_ROOT%\lib;%MADARA_ROOT%\bin;%PATH%
---------------------------------------
Generate the Madara project for your system
* Linux
cd $MADARA_ROOT
mwc.pl -type gnuace MADARA.mwc
* Windows
cd $MADARA_ROOT
mwc.pl -type vc9 MADARA.mwc
---------------------------------------
Compiling the Madara library on your system
* Linux
cd $MADARA_ROOT
make tests=1
* Windows
cd $MADARA_ROOT
open the Madara.sln solution file
Compile the Visual Studio solution
========================================================
3. Installing GAMS
---------------------------------------
Downloading the source
* Download GAMS to /opt/madara on a Linux box
git clone https://code.google.com/p/gams-cmu /opt/gams
* Download GAMS to C:\madara on a Windows box
git clone https://code.google.com/p/gams-cmu/ C:\gams
---------------------------------------
Set environment variables
* First, make sure you setup ACE on your system and follow the installation
notes for setting environment variables for ACE. Then, follow the instructions
for MADARA.
* Next, set the following environment variable for GAMS
-- Linux
export GAMS_ROOT=/opt/gams
export LD_LIBRARY_PATH=$GAMS_ROOT/lib:$LD_LIBRARY_PATH
export PATH=$GAMS_ROOT/bin:$PATH
-- Windows
MADARA_ROOT=C:\gams
PATH=%GAMS_ROOT%\lib;%GAMS_ROOT%\bin
---------------------------------------
Generate the GAMS project for your system
* Linux
cd $GAMS_ROOT
mwc.pl -type gnuace gams.mwc
* Windows
cd $GAMS_ROOT
mwc.pl -type vc9 gams.mwc
Note that this does not generate features like vrep or dronerk. To enable
these features, add -features and set the appropriate feature from the
default.features file. For instance:
mwc.pl -type gnuace -features vrep=1,dronerk=1 gams.mwc
This will generate makefiles that include the VREP and Drone-RK platforms.
---------------------------------------
Compiling the GAMS library on your system
* Linux
cd $GAMS_ROOT
make tests=1
* Windows
cd %GAMS_ROOT%
open the gams.sln solution file
Compile the Visual Studio solution