-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgertico_manual.txt
More file actions
127 lines (90 loc) · 3.92 KB
/
Copy pathgertico_manual.txt
File metadata and controls
127 lines (90 loc) · 3.92 KB
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
1. Installation
===============
The binary distribution of GERTICO consists of a single archive. After
extracting this archive you will see a directory which contains GERTICO and
some third party libraries.
Linux Installation
------------------
Unpack the compressed gertico file and copy its contents to any directory
(e.g. /usr/local). Two environment variables are needed:
GERTICO has to point to the gertico directory (e.g. GERTICO=/usr/local/gertico)
LD_LIBRARY_PATH has to point to the dynamic libraries of Gertico
(e.g. LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GERTICO/lib)
Windows Installation
--------------------
Extract the archive to a directory of your choice (e.g. C:\programfiles).
Before you can use GERTICO you must set the environment variable
GERTICO=C:\programfiles\gertico
and add directory %GERTICO%\bin to the search path so that GERTICO's
executables and DLLs can be found by the operating system.
Warning: Make sure that no other directory is in your search path which contains
the ACE/TAO DLLs, e.g. DMSO RTI NG1.3! If a different version of ACE/TAO than
the one required by GERTICO is used, library symbols cannot be resolved and
your program will not start!
Then you must adapt the configuration file "GERTICOconf.xml" to your
configuration as described below.
2. Configuration
================
Gertico is configured in the file GERTICOconf.xml which is in the gertico
directory. There are two entries which have to be adapted:
The endpoint is the ip address and port of the machine where the Corba
NamingService is running (see chapter 3).
<endPoint>corbaloc:iiop:192.168.240.107:3000</endPoint>
On Windows you must use the fully qualified host name instead of the numeric ip
address. If the hostname cannot be resolved add it to the "hosts" file in
directory C:\winnt\system32\drivers\etc. If you don't need to run a federation
execution on several computers, you can use "localhost" instead of a fully
qualified host name and run the NamingService, GeRti and all federates on the
same computer.
The ModelPath is the directory where your fed files are located.
<ModelPath>/home/user_1/FED</ModelPath>
3. Starting Gertico
===================
First of all you have to start the Corba NamingService which is in the
gertico/bin directory:
Naming_Service -ORBEndpoint iiop://192.168.240.107:3000 -d
(-d is optional for verbose mode)
The parameter "-ORBEndpoint iiop://192.168.240.107:3000" is the ipaddress (with
defined port number) of the machine where the NamingService is running.
Then gertico has to be started:
> cd $GERTICO/bin
> gerti
Starting GERTICO server
Server is running
Please wait until the message "Server is running" appears.
The Corba NamingService needs the complete hostname with its domainname of each
computer where a federate is running. So make sure that all ip addresses can be
resolved by a DNS server or an entry in /etc/hosts.
4. Building applications
========================
The binary distribution contains a few example programs.
Building applications on Linux
------------------------------
For building applications please have a look at the Makefile in
gertico/samples/helloworld. Applications have to be linked with following
libraries:
RTI_INCD = $(GERTICO)/include
RTI_LIBD = -L$(GERTICO)/lib
RTI_LIBS = \
-lrtimap \
-lGeRTI_v1_0_CORBA \
-lgertitm \
-lgertimom \
-lgertiown \
-lOMT_XML \
-lgertiut \
-lrtiidl \
-lgal \
-lTAO \
-lACE \
-lTAO_CosNaming \
-lxerces-c \
-lFedtimeDouble \
-lRTI_Exceptions
Building applications on Windows
--------------------------------
In order to build your own federates on Windows you need Visual C++ 6.0 with
Service Pack 5 or higher. Code generation mus be set to "Multithreaded DLL
debugging" and the Run-Time Type Identification (RTTI) must be enabled.
The GERTICO header files are in %GERTICO%\include and libraries are in
%GERTICO%\lib. Applications must be linked with LRCd.lib and FedTimeDoubleD.lib