ibm rational rhapsody support for microsoft visual studio 2015
TRANSCRIPT
Rhapsody 8.X - Support for Visual Studio 2015
Setting up IBM Rational Rhapsody C++ to support Microsoft Visual Studio 2015
Frank Braun,
Managing Partner EVOCEAN Deutschland GmbH
2 - © EVOCEAN www.evocean.com
Introduction
Prerequisite :
• Rhapsody 8.x and Visual Studio 2015 or Visual Studio Community 2015 installed
Problem:
• Compiling a Rhapsody Model with Microsoft Visual Studio (MSVC) as selected
environment results in error -> No Visual Studio installed
Reason:
• The current Rhapsody Version (until 8.1.5) does not support Visual Studio 2015
3 - © EVOCEAN www.evocean.com
Solution
To support Microsoft Visual Studio 2015 some little changes need to be
performed in the Rhapsody environment settings.
These changes are explained in the following document, which includes the
following steps:
• Add VS2015 Environment as a new selection to the Rhapsody Site File
• Adopt the Rhapsody Microsoft Batch file to build Visual Studio 2015
• Uncomment one line in the Rhapsody Microsoft OS adaptor configuration file
• Add two lines in the MSBuild Makefile to build the Rhapsody Framework with
Visual Studio 2015
• Build the Rhapsody Framework with the new settings for VS2015
• Test the environment.
4 - © EVOCEAN www.evocean.com
Adding VS2015 Environment in siteC++
In <RHAPSODY_ROOT>\Share\Properties\siteC++.prp
• Add the following section as shown below:
Note that you need a third end to close (end) the file itself.
5 - © EVOCEAN www.evocean.com
Adopt the Microsoft Build Batch File
In <RHAPSODY_ROOT>\Share\etc\msvcmake.bat
• Add or Change the following 4 lines as shown below
Original File Changed File
6 - © EVOCEAN www.evocean.com
Customizing Microsoft adaptor OS configuration file
In <RHAPSODY_ROOT>\Share\LangCpp\osconfig\WIN32\omosconfig.h
• Comment out the line:
#define OM_NEW_OPERATOR_NEEDS_DUMMY_PARAM
• So that it looks like this:
//#define OM_NEW_OPERATOR_NEEDS_DUMMY_PARAM
7 - © EVOCEAN www.evocean.com
Change MSBuild.mak
For being able to compile the Rhapsody Framework with Visual Studio 2015
we also need to adopt the Rhapsody MSBuild Makefile.
In <RHAPSODY_ROOT>\Share\LangCpp\msbuild.mak
• Add the following 2 lines as shown below.
Original File Changed File
8 - © EVOCEAN www.evocean.com
Building the Rhapsody Framework with VS 2015
Preparation
• Launch Rhapsody in C++ and create a new Project
• On Component level in the configuration make sure the MSVC is select .
Build the Framework
• Select Code->Build Framework
9 - © EVOCEAN www.evocean.com
Testing Environment
Add a class to the Model then press Generate/Make/Run.
The Model should build and link without any errors.
10 - © EVOCEAN www.evocean.com
Want More ?
We periodically run the following Training Courses:
• IBM Rhapsody in C and C++ Training with UML (4 days)
• EVOCEAN Rhapsody in C++ with RaspberryPi Training (3 days)
• Rhapsody for System Engineers with SysML (4 days)
Visit: www.evocean.com/events
Project Support, In-house Trainings (World-Wide) / Trainings in
Rhapsody in Ada or Java on request….
Send request to : [email protected]