Skip to content
Snippets Groups Projects
Commit 398ac7fa authored by balaskoa's avatar balaskoa
Browse files

Install guide improvement (Bug 511193)


Signed-off-by: default avatarbalaskoa <jeno.balasko@ericsson.com>
parent b20ce2ae
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ Cygwin setup ...@@ -77,7 +77,7 @@ Cygwin setup
(H) Select the Create icon on Desktop checkbox (H) Select the Create icon on Desktop checkbox
(I) (Optional) (I) Change <your home directory> (optional):
Your "unix" home directory, by default is: Your "unix" home directory, by default is:
<your cygwin installation directory>/home/<yourUserId> <your cygwin installation directory>/home/<yourUserId>
If you are (also) working in command line mode, it is a good If you are (also) working in command line mode, it is a good
...@@ -103,33 +103,45 @@ Cygwin setup ...@@ -103,33 +103,45 @@ Cygwin setup
into the Windows environment variable "Path". For example if the cygwin root is "C:\cygwin64" then into the Windows environment variable "Path". For example if the cygwin root is "C:\cygwin64" then
Path should contain "C:\cygwin64\bin;C:\cygwin64\usr\bin". Path should contain "C:\cygwin64\bin;C:\cygwin64\usr\bin".
(J) Using the binary Titan package: download the Titan package for from (J) Using the binary Titan package: download the Titan package from
GitHub. Unpack the Titan package into a folder of your choice. https://projects.eclipse.org/projects/tools.titan/downloads.
Unpack the Titan package into a folder of your choice (for example ${HOME}/titan.core)
Note: It is not a requirement, but is a kind of best practice to Note: It is not a requirement, but is a kind of best practice to
place Titan into a subfolder within your "unix" home directory. place Titan into a subfolder within your "unix" home directory.
Edit the <your cygwin installation directory>/home/<yourUserId>/.bashrc Edit the <your cygwin installation directory>/home/<yourUserId>/.bashrc
file. Add these lines to it: file. Add these lines to it:
export TTCN3_DIR=${HOME}/titan.core
export PATH=${TTCN3_DIR}/bin:${PATH} export PATH=${TTCN3_DIR}/bin:${PATH}
export LD_LIBRARY_PATH=${TTCN3_DIR}/lib:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH=${TTCN3_DIR}/lib:${LD_LIBRARY_PATH}
(K) Compile Titan with Cygwin: or(K) Using TITAN from source code
Get the latest source code from GitHub. Get the latest source code from GitHub:
Download and install JDK from Oracle's download site: - First time:
cd ~/git
git clone https://github.com/eclipse/titan.core.git
//Folder titan.core will be created
- Updating the already existing local repository:
cd ~/git/titan.core
git pull https://github.com/eclipse/titan.core.git
Download and install JDK from Oracle's download site:
http://www.oracle.com/technetwork/java/javase/downloads/index.html http://www.oracle.com/technetwork/java/javase/downloads/index.html
Edit the <your cygwin installation directory>/home/<yourUserId>/.bashrc Compile Titan with Cygwin:
as above. Edit the <your home directory>/.bashrc, as above in (J), add these lines to it:
Create titan/Makefile.personal with the following content: export TTCN3_DIR=${HOME}/git/titan.core/Install
TTCN3_DIR := /home/<user id>/git/titan/Install export PATH=${TTCN3_DIR}/bin:${PATH}
export LD_LIBRARY_PATH=${TTCN3_DIR}/lib:${LD_LIBRARY_PATH}
Create titan.core/Makefile.personal with the following content:
TTCN3_DIR := <your home directory>/git/titan.core/Install
JDKDIR := /home/<user id>/jdk JDKDIR := /home/<user id>/jdk
JNI := no JNI := no
GUI := no GUI := no
GEN_PDF := no GEN_PDF := no
DEBUG := no DEBUG := no
Compile Titan: Compile Titan:
cd titan cd titan
make -j make -j
make install make install
The compiled files will be placed into the titan/Install directory. The compiled files will be placed into the titan.core/Install directory.
(L) If you want to use graphical tools (like nedit for example), then you need to install the Cygwin/X (L) If you want to use graphical tools (like nedit for example), then you need to install the Cygwin/X
component too. The install procedure can be found at the homepage: component too. The install procedure can be found at the homepage:
......
...@@ -23,9 +23,16 @@ sudo apt-get install xutils-dev ...@@ -23,9 +23,16 @@ sudo apt-get install xutils-dev
The following packages may be needed for titan_eclipse/automatic_build: The following packages may be needed for titan_eclipse/automatic_build:
sudo apt-get install ant xsltproc sudo apt-get install ant xsltproc
2.Clone the titan directory from git into /home/<user_id>/titan.core 2.Clone or update the titan directory from git into /home/<user_id>/titan.core
git clone https://github.com/eclipse/titan.core titan.core cd /home/<user_id>/
git clone https://github.com/eclipse/titan.core.git titan.core
or
Update the already existing local repository:
cd /home/<user_id>/titan.core
git pull https://github.com/eclipse/titan.core.git
3. Configure the build 3. Configure the build
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment