Skip to content

Eclipse Configuration

Paolo Di Tommaso edited this page May 5, 2014 · 1 revision

How configure Eclipse for T-Coffee development.

2 | T-Coffee project configuration

Download or update your T-Coffee project from the subversion repository.

Your T-Coffee main directory should contain an eclipse folder (as well as lib and t_coffee directory).

More details how to access the SVN repository here.

Import T-Coffee project in Eclipse environment

Choose "File > Import .. " from the Eclipse main menu. In the dialog box that opens select the "C/C++" folder and choose "Existing Code as Makefile Project".

In the next dialog enter the project name, let's say tcoffee and the root path your file system where you have a copy of T-Coffee sources.

Choose "C" in the "Languages" field and a "Toolchain" adeguate to your environment.

http://tcoffee.googlecode.com/svn/wiki/images/eclipse-import-project.png

When you have done click the "Finish" button. Eclipse will load the project and will show it in the tree structure on the left.

Configure the build makefile

To have Eclipse build T-Coffee we use a special makefile contained the eclipse folder.

Choose "Project > Properties" from the Eclipse main application menu.

In the following dialog select "C/C++ Build" node in the tree on the left.

In the "Build directory" field enter ${ProjDirPath}/compile value (which means the compile folder in the T-Coffee project just created.

http://tcoffee.googlecode.com/svn/wiki/images/eclipse-build.png

Also select "Environment" node in the tree control on the left and then add an environment variable named LIB_DIR with the value ${workspace_loc:/tcoffee/lib}, check the "Add to all configuration" checkbox and click "OK".

http://tcoffee.googlecode.com/svn/wiki/images/eclipse-env-variable.png

When done close the properties dialog pressing the "OK" button.

Configure the source location

Since T-Coffee builds many header files during the build process it is important to configure Eclipse so that it shares the path for sources with the build output path .

To do that open again the "Project Properties" dialog and select "Path and Symbols" under the "C/C++ General" node in the tree control on the left.

Click on the "Source location" tab, press the "Add folder" button and add the directories as showed in the picture below.

http://tcoffee.googlecode.com/svn/wiki/images/eclipse-project-properties.png

Finally, configure the headers paths for your T-Coffee project. In the same dialog click on the "includes" button and add the following two directories /lib and /lib/data_headers, marking them with flag "workspace path" available in the add dialog.

http://tcoffee.googlecode.com/svn/wiki/images/eclipse-includes.png

Confirm the project configuration by clicking the "OK" button in the properties dialog.


Eclipse Development | Eclipse Tutorial