Configuring Build Settings

Before a build can occur in Eclipse, there are activities which must occur in both Rational Rose RealTime and Eclipse. For additional information on the build settings in Rational Rose RealTime, see Configuring Build Settings in Rational Rose RealTime on page 100. To build from Eclipse, both Cygwin and Rational Rose RealTime must to be installed on the computer that runs Eclipse. 

Note: For a Windows configuration, after you install Cygwin, you must add <CygwinInstallLocation>:\bin to your Path environment variable. Rational Rose RealTime must be installed on the computer running Eclipse, but it does not have to be running. 

In Rational Rose RealTime, the settings on the C++ Generation tab (C Generation tab for the C language), are only for the computer running Rational Rose RealTime. Additionally, the settings in the C++ Compilation tab (C Compilation tab for the C language) must be configured for the computer building in Eclipse. This means that if you select a component in Rational Rose RealTime for a specific configuration (for example, a Windows-specific component) and you want to build for a different configuration (for example Linux) you must modify the compilation settings on the C++ Generation tab in Rational Rose RealTime. Additionally, you must modify the $ROSERT_HOME environment variable in the TargetServicesLibrary box by inserting round brackets around the environment variable name. For example, $(ROSERT_HOME)/C++/TargetRTS.

Building in Eclipse

In Eclipse, right-click on a project and select Build Project. The C/C++ Project perspective changes focus to the C-Build console view which shows the build output. Any compilation errors or warnings display in the Tasks list.

Note: When a project is created in Eclipse, Eclipse modifies the C/C++ Build settings to facilitate the building of Rational Rose RealTime code from Eclipse. Eclipse generates a new makefile, Makefile.eric. This makefile enables the re-use of the makefiles generated by Rational Rose RealTime.