ibm rational rhapsody support for microsoft visual studio 2015

10
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

Upload: frank-braun

Post on 14-Apr-2017

374 views

Category:

Software


3 download

TRANSCRIPT

Page 1: IBM Rational Rhapsody support for Microsoft Visual Studio 2015

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

Page 2: IBM Rational Rhapsody support for Microsoft Visual Studio 2015

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

Page 3: IBM Rational Rhapsody support for Microsoft 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.

Page 4: IBM Rational Rhapsody support for Microsoft Visual Studio 2015

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.

Page 5: IBM Rational Rhapsody support for Microsoft Visual Studio 2015

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

Page 6: IBM Rational Rhapsody support for Microsoft Visual Studio 2015

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

Page 7: IBM Rational Rhapsody support for Microsoft Visual Studio 2015

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

Page 8: IBM Rational Rhapsody support for Microsoft Visual Studio 2015

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

Page 9: IBM Rational Rhapsody support for Microsoft Visual Studio 2015

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.

Page 10: IBM Rational Rhapsody support for Microsoft Visual Studio 2015

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]