Merge pull request #74 from BenceJanosSzabo/master
[deliverable/titan.core.git] / README.linux
... / ...
CommitLineData
1******************************************************************************
2* Copyright (c) 2000-2016 Ericsson Telecom AB
3* All rights reserved. This program and the accompanying materials
4* are made available under the terms of the Eclipse Public License v1.0
5* which accompanies this distribution, and is available at
6* http://www.eclipse.org/legal/epl-v10.html
7* Contributors:
8* Balasko, Jeno
9* Baranyi, Botond
10* Lelik, Elemer
11* Pilisi, Gergely
12* Szabados, Kristof
13******************************************************************************
14
15Build and install Titan on Linux
16
171.Install required libraries:
18(examples are given for Ubuntu 12.04/14.04; for other Linuxes, pls. use the relevant library installation method)
19
20sudo apt-get install g++ expect libssl-dev libxml2-dev libncurses5-dev flex bison
21xutils-dev is needed by makedepend:
22sudo apt-get install xutils-dev
23The following packages may be needed for titan_eclipse/automatic_build:
24sudo apt-get install ant xsltproc
25
262.Clone the titan directory from git into /home/<user_id>/titan.core
27
28git clone https://github.com/eclipse/titan.core titan.core
29
303. Configure the build
31
32cd titan.core
33
34For open source users: check that MakefileFOSS.cfg is present and has the following content:
35cat MakefileFOSS.cfg
36
37# Configurations for the Free Open Source Software version
38LICENSING := no
39USAGE_STATS := no
40
41If you want to use your build within teh Ericsson domain: delete MakefileFOSS.cfg
42This will enable licensing.
43
44Several build options are possible; for details on options please read through the Makefile.cfg.
45Options can be overridden by the content of a file named Makefile.personal which can be used to
46adapt to local installation directories, change config options etc.
47Below, a small number of typical scenarios are presented.
48
49a) JNI disabled, gcc compiler (default)
50
51The JNI interface is used by the Eclipse Titan Executor or by the Java Executor API.
52If you don't need them , Titan can be compiled without JNI.
53
54Create ~/titan.core/Makefile.personal to override settings in Makefile.cfg with the following content:
55(replace paths with values relevant to your installation)
56
57TTCN3_DIR := /home/<user id>/titan.core/Install
58OPENSSL_DIR := /usr
59#JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64
60XMLDIR := /usr
61JNI := no
62GEN_PDF := no
63
64b) JNI disabled, clang compiler ver. 3.8
65
66Create ~/titan.core/Makefile.personal to override settings in Makefile.cfg with the following content:
67(replace paths with values relevant to your installation).
68
69TTCN3_DIR := /home/<user id>/titan.core/Install
70OPENSSL_DIR := /usr
71#JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64
72XMLDIR := /usr
73JNI := no
74GEN_PDF := no
75CXX := clang++-3.8
76CC := clang-3.8
77
78
79c) JNI enabled, gcc compiler (default)
80
81install JDK into /home/<user id>/jdk
82
83Create ~/titan.core/Makefile.personal to override settings in Makefile.cfg with the following content:
84(replace paths with values relevant to your installation).
85
86TTCN3_DIR := /home/<user id>/titan.core/Install
87OPENSSL_DIR := /usr
88JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64
89XMLDIR := /usr
90JNI := yes
91GEN_PDF := no
92
93
94
954. Run make
96
97make
98
995. Set environment variables
100
101setenv TTCN3_DIR /home/<user id>/titan.core/Install
102setenv PATH /home/<userid>/titan.core/Install/bin/:${PATH}
103setenv LD_LIBRARY_PATH /home/<userid>/titan.core/Install/lib:${LD_LIBRARY_PATH}
104
105for csh
106
107or
108
109export TTCN3_DIR=/home/<user id>/titan.core/Install
110export PATH=/home/<userid>/titan.core/Install/bin/:${PATH}
111export LD_LIBRARY_PATH=/home/<userid>/titan.core/Install/lib:${LD_LIBRARY_PATH}
112
113for bash
114
1156. Run make install
116
117make install
118
119This will install Titan into /home/<user id>/titan.core/Install
120
121
1227. Optionally , run function/regression tests
123
124cd /home/<user id>/titan.core/function_test
125
126in the following Makefiles
127
128BER_EncDec/Makefile
129XER_EncDec/Makefile
130Text_EncDec/Makefile
131RAW_EncDec/Makefile
132
133edit the value of XMLDIR to match your installation values
134
135run the tests
136
137make
138
139( or make |& tee outputfile if you want to save the output for verification)
140
141cd /home/<user id>/titan.core/regression_test
142make run
143
144( or make run |& tee outputfile if you want to save the output for verification)
145
146These tests might run for half an hour (regr.tests) to two hours (func.tests)
147
1488. Optionally, copy Titan into its final directory.
149From here on, you can continue with the Titan installation guide, see /Install/docs, to set/change environment variables etc.
150
This page took 0.024314 seconds and 5 git commands to generate.