1 Build and install Titan on Linux
3 1.Install required libraries:
4 (examples are given for Ubuntu 12.04/14.04; for other Linuxes, pls. use the relevant library installation method)
6 sudo apt-get install g++ expect libssl-dev libxml2-dev libncurses5-dev flex bison
7 xutils-dev is needed by makedepend:
8 sudo apt-get install xutils-dev
9 The following packages may be needed for titan_eclipse/automatic_build:
10 sudo apt-get install ant xsltproc
12 2.Clone the titan directory from git into /home/<user_id>/titan
14 git clone https://github.com/eclipse/titan.core titan
16 3. Configure the build
19 check that MakefileFOSS.cfg is present and has the following content:
22 # Configurations for the Free Open Source Software version
27 Several build options are possible; for details on options , please read through the Makefile.cfg.
28 Options can be overridden by the content of a file named Makefile.personal which can be used to
29 adapt to local installation directories, change config options etc.
30 Below, a small number of typical scenarios are presented.
34 The JNI interface is used by the Eclipse Titan Executor or by the Java Executor API.
35 If you don't need them , Titan can be compiled without JNI.
37 Create ~/titan/Makefile.personal to override settings in Makefile.cfg with the following content:
38 (replace paths with values relevant to your installation)
40 TTCN3_DIR := /home/<user id>/titan/Install
42 #JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64
52 install JDK into /home/<user id>/jdk
54 Create ~/titan/Makefile.personal to override settings in Makefile.cfg with the following content:
55 (replace paths with values relevant to your installation)
57 TTCN3_DIR := /home/<user id>/titan/Install
59 JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64
74 This will install Titan into /home/<user id>/titan/Install
76 5. Optionally , run function/regression tests
78 set environment variable TTCN3_DIR to /home/<user id>/titan/Install
80 (setenv TTCN3_DIR /home/<user id>/titan/Install for csh,
81 export TTCN3_DIR=/home/<user id>/titan/Install for bash )
85 cd /home/<user id>/titan/function_test
87 in the following Makefiles
93 edit the value of XMLDIR to match your installation values
99 ( or make |& tee outputfile if you want to save the output for verification)
101 cd /home/<user id>/titan/regression_test
104 ( or make run |& tee outputfile if you want to save the output for verification)
106 These tests might run for half an hour (regr.tests) to two hours (func.tests)
108 6. Optionally , copy Titan into its' final directory.
109 From here on, you can continue with the Titan installation guide, see /Install/docs, to set environment variables etc.