Sync with 5.2.0
[deliverable/titan.core.git] / README.linux
CommitLineData
af710487 1******************************************************************************
2* Copyright (c) 2000-2015 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******************************************************************************
8
9Build and install Titan on Linux
10
111.Install required libraries:
12(examples are given for Ubuntu 12.04/14.04; for other Linuxes, pls. use the relevant library installation method)
13
14sudo apt-get install g++ expect libssl-dev libxml2-dev libncurses5-dev flex bison
15xutils-dev is needed by makedepend:
16sudo apt-get install xutils-dev
17The following packages may be needed for titan_eclipse/automatic_build:
18sudo apt-get install ant xsltproc
19
202.Clone the titan directory from git into /home/<user_id>/titan
21
22git clone https://github.com/eclipse/titan.core titan
23
243. Configure the build
25
26cd titan
27check that MakefileFOSS.cfg is present and has the following content:
28cat MakefileFOSS.cfg
29
30# Configurations for the Free Open Source Software version
31LICENSING := no
32USAGE_STATS := no
33
34
35Several build options are possible; for details on options , please read through the Makefile.cfg.
36Options can be overridden by the content of a file named Makefile.personal which can be used to
37adapt to local installation directories, change config options etc.
38Below, a small number of typical scenarios are presented.
39
401) JNI disabled
41
42The JNI interface is used by the Eclipse Titan Executor or by the Java Executor API.
43If you don't need them , Titan can be compiled without JNI.
44
45Create ~/titan/Makefile.personal to override settings in Makefile.cfg with the following content:
46(replace paths with values relevant to your installation)
47
48TTCN3_DIR := /home/<user id>/titan/Install
49OPENSSL_DIR := /usr
50#JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64
51XMLDIR := /usr
52JNI := no
53GEN_PDF := no
54
55
56
57
582) JNI enabled
59
60install JDK into /home/<user id>/jdk
61
62Create ~/titan/Makefile.personal to override settings in Makefile.cfg with the following content:
63(replace paths with values relevant to your installation)
64
65TTCN3_DIR := /home/<user id>/titan/Install
66OPENSSL_DIR := /usr
67JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64
68XMLDIR := /usr
69JNI := yes
70GEN_PDF := no
71
72
73
743. Run make
75
76make
77
784. Run make install
79
80make install
81
82This will install Titan into /home/<user id>/titan/Install
83
845. Optionally , run function/regression tests
85
86set environment variable TTCN3_DIR to /home/<user id>/titan/Install
87
88(setenv TTCN3_DIR /home/<user id>/titan/Install for csh,
89export TTCN3_DIR=/home/<user id>/titan/Install for bash )
90
91
92
93cd /home/<user id>/titan/function_test
94
95in the following Makefiles
96
97XER_EncDec/Makefile
98Text_EncDec/Makefile
99RAW_EncDec/Makefile
100
101edit the value of XMLDIR to match your installation values
102
103run the tests
104
105make
106
107( or make |& tee outputfile if you want to save the output for verification)
108
109cd /home/<user id>/titan/regression_test
110make run
111
112( or make run |& tee outputfile if you want to save the output for verification)
113
114These tests might run for half an hour (regr.tests) to two hours (func.tests)
115
1166. Optionally , copy Titan into its' final directory.
117From here on, you can continue with the Titan installation guide, see /Install/docs, to set environment variables etc.
118
This page took 0.046109 seconds and 5 git commands to generate.