Update README.linux
[deliverable/titan.core.git] / README.linux
CommitLineData
970ed795
EL
1Build and install Titan on Linux\r
2\r
31.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
6sudo apt-get install g++ expect libssl-dev libxml2-dev libncurses5-dev flex bison\r
7xutils-dev is needed by makedepend:\r
8sudo apt-get install xutils-dev\r
9The following packages may be needed for titan_eclipse/automatic_build:\r
10sudo apt-get install ant xsltproc\r
11\r
122.Clone the titan directory from git into /home/<user_id>/titan\r
13\r
bab5bcd9
EL
14git clone https://github.com/eclipse/titan.core titan\r
15\r
970ed795 163. Configure the build \r
bab5bcd9 17\r
970ed795
EL
18cd titan\r
19check that MakefileFOSS.cfg is present and has the following content:\r
20cat MakefileFOSS.cfg\r
21\r
22# Configurations for the Free Open Source Software version\r
23LICENSING := no\r
24USAGE_STATS := no\r
25\r
26\r
27Several build options are possible; for details on options , please read through the Makefile.cfg.\r
bab5bcd9
EL
28Options can be overridden by the content of a file named Makefile.personal which can be used to \r
29adapt to local installation directories, change config options etc.\r
970ed795
EL
30Below, a small number of typical scenarios are presented.\r
31\r
321) JNI disabled\r
33\r
34The JNI interface is used by the Eclipse Titan Executor or by the Java Executor API.\r
bab5bcd9 35If you don't need them , Titan can be compiled without JNI. \r
970ed795
EL
36\r
37Create ~/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
40TTCN3_DIR := /home/<user id>/titan/Install\r
bab5bcd9
EL
41OPENSSL_DIR := /usr\r
42#JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64\r
43XMLDIR := /usr\r
970ed795 44JNI := no\r
bab5bcd9 45GEN_PDF := no\r
970ed795
EL
46\r
47\r
48\r
49\r
502) JNI enabled\r
51\r
52install JDK into /home/<user id>/jdk\r
53\r
54Create ~/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
57TTCN3_DIR := /home/<user id>/titan/Install\r
bab5bcd9
EL
58OPENSSL_DIR := /usr\r
59JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64\r
60XMLDIR := /usr\r
970ed795 61JNI := yes\r
bab5bcd9 62GEN_PDF := no\r
970ed795
EL
63\r
64\r
65\r
663. Run make\r
67\r
68make\r
69\r
704. Run make install\r
71\r
72make install\r
73\r
74This will install Titan into /home/<user id>/titan/Install\r
75\r
765. Optionally , run function/regression tests\r
77\r
78set 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
81export TTCN3_DIR=/home/<user id>/titan/Install for bash )\r
82\r
83\r
84\r
85cd /home/<user id>/titan/function_test\r
bab5bcd9
EL
86\r
87in the following Makefiles \r
88\r
89XER_EncDec/Makefile\r
90Text_EncDec/Makefile\r
91RAW_EncDec/Makefile\r
92\r
93edit the value of XMLDIR to match your installation values \r
94\r
95run the tests\r
96\r
970ed795
EL
97make\r
98\r
99( or make |& tee outputfile if you want to save the output for verification)\r
bab5bcd9 100\r
970ed795
EL
101cd /home/<user id>/titan/regression_test\r
102make 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
106These tests might run for half an hour (regr.tests) to two hours (func.tests)\r
107\r
1086. Optionally , copy Titan into its' final directory.\r
109From 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
This page took 0.028385 seconds and 5 git commands to generate.