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