Before you can install and use Rational® Software Architect RealTime
Edition,
you must install a Gnu-based C++ compiler such as Cygwin. You can
also use Gnu-based, RTOS vendor-supplied cross-compilers. On Linux and Solaris systems, a compiler
is available by default. Non-Gnu-based compilers, such as Microsoft Visual Studio, that
worked in Rational Rose® RealTime
are also supported for building applications after migration. However,
you will not have debugging support as a result of the lack of integration
between Eclipse and Microsoft technologies.
About this task
To install Cygwin, complete the following steps:
Procedure
- Go to http://cygwin.com and click setup.exe.
- In the Cygwin Setup wizard, specify
the appropriate settings, such as the installation location, for your
environment.
- On the Choose a Download Site page,
select a download site close to your geographical location.
- On the Select Packages page, expand Devel and
specify the following settings:
- gcc-g++: C++ compiler
- gdb: The GNU debugger
- make: The GNU version of the make utility
Important: Do not use a version higher than
3.80 for the GNU version of the make utility. If you use a higher
version, error messages are displayed during compilation.
- Download and install the compiler to a location without
spaces in its path, and click Finish.
- Specify this environment variable: PATH=<Cygwin
installation directory>\bin;%PATH%
- If you plan to compile the generated code from the command
line, outside the Rational Software
Architect RealTime Edition environment, set the following environment
variables:
- LIBRARY_PATH=<Cygwin installation directory>\lib
- CPATH=<Cygwin installation directory>\usr\include
Note: If you get a warning message related to these variables
when you compile, you can ignore them.
What to do next
Note: On Solaris 10, after you install the correct version
of the GNU compiler and make utility, you might have to set up the
following environment variable; otherwise, you might receive a build
error about missing libraries:
- LD_LIBRARY_PATH /usr/lib:/usr/local/lib
Also, you must install the version of Perl as specified by the
Cygwin installation information.