This repository has been archived by the owner on Oct 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILDING
117 lines (82 loc) · 3.68 KB
/
BUILDING
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
Component Synthesis using Model-Integrated Computing (CoSMIC) - Building Instructions
Table of Contents
======================================
I. Minimum Requirements
II. Environment Setup
III. Downloading the Source Code
IV. Building the Source Code
V. Registering the PICML Paradigm
I. Minimum Requirements
======================================
The following are the minimum environments needed for building
CoSMIC:
1. Visual Studio 2008, or later (Visual C++)
2. Generic Modeling Environment (GME) (13.x.x)
The following are the minimum frameworks needed for building the
main projects in CoSMIC:
1. Boost 1.49, or later (http://www.boost.org)
2. Xerces-C 3.1.1 (http://xerces.apache.org/xerces-c)
3. Universal Data Model (UDM) 3.2.11 (http://repo.isis.vanderbilt.edu/UDM)
4. The Adaptive Communication Environment (ACE) (http://www.dre.vanderbilt.edu/ACE)
5. The Makefile Workspace Project Creator (MPC) (http://www.ociweb.com/products/MPC)
The following are the optional frameworks needed for building
parts of CoSMIC:
1. Zlib (http://gnuwin32.sourceforge.net/packages/zlib.htm)
2. minizip (https://github.com/DOCGroup/DAnCE)
II. Environment Setup
======================================
The following table list the environment variables that must
be defined to correctly build CoSMIC. It is advised that you
place the environment definitions in the table below in a
Batch (.bat) file that can be invoked on-demand. This will
ensure that you do not pollute your system's current environment,
and potentially corrupt your system.
Variable Name | Description
------------------|----------------------
ACE_ROOT | location of ACE
DANCE_ROOT | location of DAnCE
MPC_ROOT | location of MPC
XERCESCROOT | location of Xerces-C
BOOST_ROOT | location of
BOOST_VERSION | version of Boost
|
COSMIC_ROOT | location of CoSMIC
GAME_ROOT | location of GAME
Lastly, you need to update the PATH variable as follows:
set PATH=%PATH%;%COSMIC_ROOT%\lib;%COSMIC_ROOT%\bin;%GAME_ROOT%\bin;%GAME_ROOT%\lib
III. Downloading the Source Code
======================================
GAME
----------
GAME is stored in a Git repository. You can download GAME
from one of the the following locations, depending on what
you can access:
[email protected]:SEDS/GAME.git
You can download GAME sources using the following command:
git.exe clone [repo] [GAME_DIR]
Notice that [GAME_DIR] will be the same directory that you
used when defining the environment variables above.
CoSMIC
----------
CoSMIC is stored in a Git repository. You can download the
CoSMIC source code using the following command:
git.exe clone [email protected]:DOCGroup/CoSMIC.git [COSMIC_DIR]
Notice that [COSMIC_DIR] will be the same directory that you
used when defining the environment variables above.
IV. Building the Source Code
======================================
The CoSMIC source code must be built from the command-line interface
for the version of Visual Studio you have installed on your machine.
Within the command-line interface, execute the following commands to
build CoSMIC:
%ACE_ROOT%\bin\mwc.pl -type [build type] CoSMIC_GAME.mwc
devenv /useenv CoSMIC_GAME.sln
As CoSMIC builds, it will automatically register the interpreters
with the version of GME that is installed on your machine.
V. Registering the PICML Paradigm
======================================
Because CoSMIC is built from source, you must manually register the
PICML paradigm. This has to be done from within GME, as follows:
Tools | Register paradigms... | Add from file...
Then locate the PICML paradigm as the following location:
%COSMIC_ROOT%\PIM\PICML\paradigms\PICML.xmp