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 3. Configure the build
16 check that MakefileFOSS.cfg is present and has the following content:
19 # Configurations for the Free Open Source Software version
24 Several build options are possible; for details on options , please read through the Makefile.cfg.
25 Options can be overridden by the content of a file named Makefile.personal.
26 Below, a small number of typical scenarios are presented.
30 The JNI interface is used by the Eclipse Titan Executor or by the Java Executor API.
31 If you don't need them , Titan can be compiled without JNI. ( In this case, you won't be able to execute Titan test cases from the Eclipse plug-in)
33 Create ~/titan/Makefile.personal to override settings in Makefile.cfg with the following content:
35 TTCN3_DIR := /home/<user id>/titan/Install
44 install JDK into /home/<user id>/jdk
46 Create ~/titan/Makefile.personal to override settings in Makefile.cfg with the following content:
48 TTCN3_DIR := /home/<user id>/titan/Install
49 JDKDIR := /home/<user id>/jdk
63 This will install Titan into /home/<user id>/titan/Install
65 5. Optionally , run function/regression tests
67 set environment variable TTCN3_DIR to /home/<user id>/titan/Install
69 (setenv TTCN3_DIR /home/<user id>/titan/Install for csh,
70 export TTCN3_DIR=/home/<user id>/titan/Install for bash )
74 cd /home/<user id>/titan/function_test
77 ( or make |& tee outputfile if you want to save the output for verification)
78 cd /home/<user id>/titan/regression_test
80 ( or make run |& tee outputfile if you want to save the output for verification)
82 These tests might run for half an hour (regr.tests) to two hours (func.tests)
84 6. Optionally , copy Titan into its' final directory.
85 From here on, you can continue with the Titan installation guide, see /Install/docs, to set environment variables etc.