|
|
# Eclipse
|
|
|
|
|
|
[[_TOC_]]
|
|
|
|
|
|
## Installation
|
|
|
Eclipse is already part of the DevEnv and therefore there is no need to install it.
|
|
|
|
|
|
## Configuration
|
|
|
waf provides the possibility to generate the Eclipse C/C++ project configuration files using the command waf eclipse. For example, if the directory hello contains a waf project:
|
|
|
|
|
|
```
|
|
|
> cd hello
|
|
|
> waf eclipse
|
|
|
```
|
|
|
|
|
|
Note that waf project must have been configured via the waf configure command before using waf eclipse.
|
|
|
|
|
|
Once the Eclipse project configuration files have been created, the IDE can be started from a terminal and the project imported via:
|
|
|
|
|
|
- From the "File" menu select the "Import" option
|
|
|
- Select "Existing Projects into Workspace"
|
|
|
- Click on "Next" button
|
|
|
- Select the "hello" root directory using the "Browse" button
|
|
|
- Click on "Finish" button
|
|
|
|
|
|
## Build
|
|
|
|
|
|
## Debugging
|
|
|
|
|
|
To debug an application in Eclipse, a Debugging Configuration for the application must be created. For example, if we want to debug the hellocii application with Eclipse:
|
|
|
|
|
|
- From the "Run" menu select the "Debug Configurations..." option
|
|
|
- Right click on "C/C++ Application" and select "New Configuration"
|
|
|
- Enter Name = hellocii
|
|
|
- In the "Main" tab enter: Project = hello
|
|
|
- In the "Main" tab enter: C/C++ Application = /home/landolfa/EELT/TUTORIAL/hello/build/hellocii/hellocii
|
|
|
- In the "Arguments" tab enter: Program arguments = -l DEBUG -c hellocii/config.yaml
|
|
|
- Click on "Debug" button to start debugging |