Using T3DevKit with Eclipse


May 18, 2009

©2009 Université de Rennes 1

Contributors:  Francois Lerebours

Requirements

Downloading a project from subversion repository

First, switch to perspective ”SVN Repository exploring” (Window menu > Open Perspective > Other... ):


PIC



PIC


Then, right click on the left panel and select New > Repository Location:


PIC


Enter the svn repository url, for example svn://scm.gforge.inria.fr/svn/t3devkit and click on Finish:


PIC


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:


PIC



PIC


In the opened box select C++ Standard Make Project, then click on Next:


PIC


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.

Compiling and Running the project

Switch to C++ perspective.

Compilation, configure build target: Right click on the just created project and then on Create Make Target:


PIC


In the displayed box: in field Target Name is written ”t3dk-all” and field Make Target is empty. Then click on Create:


PIC


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.


PIC



PIC


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:


PIC


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:


PIC


Creating a project from scratch

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:

 
project directory 
        | 
        -----c++ 
        -----ttcn 
        -----log

On the left panel, right click and select New > C++ Standard Make Project:


PIC


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


PIC


NB: on slower computers it may be preferable to disable TTCN-3 metrics automatic calculation: Project > Properties > TRex Settings > uncheck ”Enable Metrics”.