©2009 Université de Rennes 1
Contributors: Francois Lerebours
First, switch to perspective ”SVN Repository exploring” (Window menu > Open Perspective > Other...
):
|
|
|
|
Then, right click on the left panel and select New > Repository Location:
|
|
Enter the svn repository url, for example svn://scm.gforge.inria.fr/svn/t3devkit and click on
Finish:
|
|
Then browse to the directory you want to checkout. By right clicking on the wanted directory, select
Checkout > Check out as a project configured using New Project Wizard and click on finish:
|
|
|
|
In the opened box select C++ Standard Make Project, then click on Next:
|
|
Give a project name.
Uncheck Use Default Location and browse to the place where you want to download the project. ( A new
folder can be created by clicking on Create Folder)
Click on OK, and then Finish: the download of the project in the created folder should start.
Switch to C++ perspective.
Compilation, configure build target: Right click on the just created project and then on Create Make Target:
|
|
In the displayed box: in field Target Name is written ”t3dk-all” and field Make Target is empty. Then click on Create:
|
|
So, it is now possible to compile the project: Right click on the projet: Clean Project and then Build Make Target and select t3dk-all.
|
|
|
|
Configure running of the executable:
Create a new Make Target: in the displayed box: in field Target Name and Make Target is written ”exec”. Then click on Create:
|
|
Is is now possible to run the test case by right-clicking on the project and selecting Build Make Target , then the exec target and clicking on Build:
|
|
Switch to C++ perspective.
To use T3DevKit with actual standard Makefile, the sample makefile provided in t3devkit use the following hierarchy of directories, it is advised to use the same layout:
On the left panel, right click and select New > C++ Standard Make Project:
|
|
In the opened box give a project name. Uncheck Use Default Location and browse to the place where you want to download the project ( A new folder can be created by clicking on Create Folder) Click on OK, and then Finish.
By right clicking on the project and selecting New > Folder , the three required directories can be created.
As indicated by the name, C/C++ files will be in ”c++” directory and TTCN-3 files will be in ”ttcn” directory. Makefile. The sample Makefile is provided in the documentation directory of T3DevKit’s package. It is named Makefile.example
|
|
NB: on slower computers it may be preferable to disable TTCN-3 metrics automatic calculation: Project > Properties > TRex Settings > uncheck ”Enable Metrics”.