Use LTTngUSTLogger logger plugin in logtest regression test
[deliverable/titan.core.git] / README.linux
CommitLineData
af710487 1******************************************************************************
d44e3c4f 2* Copyright (c) 2000-2016 Ericsson Telecom AB
af710487 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
d44e3c4f 7* Contributors:
8* Balasko, Jeno
9* Baranyi, Botond
10* Lelik, Elemer
11* Pilisi, Gergely
12* Szabados, Kristof
af710487 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
3abe9331 262.Clone the titan directory from git into /home/<user_id>/titan.core
af710487 27
3abe9331 28git clone https://github.com/eclipse/titan.core titan.core
af710487 29
303. Configure the build
31
3abe9331 32cd titan.core
e94191bf
EL
33
34For open source users: check that MakefileFOSS.cfg is present and has the following content:
af710487 35cat MakefileFOSS.cfg
36
37# Configurations for the Free Open Source Software version
38LICENSING := no
39USAGE_STATS := no
40
e94191bf
EL
41If you want to use your build within teh Ericsson domain: delete MakefileFOSS.cfg
42This will enable licensing.
af710487 43
ef855bc1 44Several build options are possible; for details on options please read through the Makefile.cfg.
af710487 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
e94191bf 49a) JNI disabled, gcc compiler (default)
af710487 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
3abe9331 54Create ~/titan.core/Makefile.personal to override settings in Makefile.cfg with the following content:
af710487 55(replace paths with values relevant to your installation)
56
3abe9331 57TTCN3_DIR := /home/<user id>/titan.core/Install
af710487 58OPENSSL_DIR := /usr
59#JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64
60XMLDIR := /usr
61JNI := no
62GEN_PDF := no
63
e94191bf
EL
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).
af710487 68
e94191bf
EL
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
af710487 77
78
e94191bf 79c) JNI enabled, gcc compiler (default)
af710487 80
81install JDK into /home/<user id>/jdk
82
3abe9331 83Create ~/titan.core/Makefile.personal to override settings in Makefile.cfg with the following content:
e94191bf 84(replace paths with values relevant to your installation).
af710487 85
3abe9331 86TTCN3_DIR := /home/<user id>/titan.core/Install
af710487 87OPENSSL_DIR := /usr
88JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64
89XMLDIR := /usr
90JNI := yes
91GEN_PDF := no
92
93
94
f99e8b7f 954. Run make
af710487 96
97make
98
f99e8b7f 995. Set environment variables
af710487 100
3abe9331 101setenv TTCN3_DIR /home/<user id>/titan.core/Install
775259be
EL
102setenv PATH /home/<userid>/titan.core/Install/bin/:${PATH}
103setenv LD_LIBRARY_PATH /home/<userid>/titan.core/Install/lib:${LD_LIBRARY_PATH}
af710487 104
775259be 105for csh
60f48d67 106
775259be 107or
60f48d67 108
3abe9331 109export TTCN3_DIR=/home/<user id>/titan.core/Install
775259be
EL
110export PATH=/home/<userid>/titan.core/Install/bin/:${PATH}
111export LD_LIBRARY_PATH=/home/<userid>/titan.core/Install/lib:${LD_LIBRARY_PATH}
60f48d67 112
775259be 113for bash
60f48d67 114
f99e8b7f 1156. Run make install
60f48d67 116
775259be 117make install
60f48d67 118
3abe9331 119This will install Titan into /home/<user id>/titan.core/Install
af710487 120
121
d44e3c4f 1227. Optionally , run function/regression tests
af710487 123
3abe9331 124cd /home/<user id>/titan.core/function_test
af710487 125
126in the following Makefiles
127
3abe9331 128BER_EncDec/Makefile
af710487 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
3abe9331 141cd /home/<user id>/titan.core/regression_test
af710487 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
e79e2f13 1488. Optionally, copy Titan into its final directory.
97cee3b0 149From here on, you can continue with the Titan installation guide, see /Install/docs, to set/change environment variables etc.
af710487 150
This page took 0.030059 seconds and 5 git commands to generate.