IBM Support

How do I deploy my application on a Linux target?

Question & Answer


Question

How do I deploy my application on a Linux target?

Answer

Rhapsody in C++ provides support for the Linux operating system. The following describes how to build the Linux libraries,
and how to generate Linux code using Rhapsody.
 
Building the Linux Libraries:
You build the Linux libraries on the target machine. The LinuxShare.tar file will be installed during the installation if you do
a custom install. Extract these libraries on the Linux machine.
 
To build the libraries, do the following:
1. Change directory to Share/LangCpp.
2. Build the libraries using the following command: gmake –f linuxbuild.mak
3. Verify that the following library files were created in the directory Share/LangCpp/lib:
• linuxaomanim.a
• linuxaomtrace.a
• linuxomcoappl.a
• linuxoxf.a
• linuxoxfinst.a
• linuxtomtrace.a
 
Creating and Running Linux Applications:
You compile, link, and run your Linux application on the Linux machine.
Perform the following steps:
1. Create the Rhapsody project on the host, and select the Linux environment on the configuration's Settings tab.
2. Transfer the generated directory with the sources, headers, and makefiles from the host to the Linux machine
(for example, by using ftp).
3. On the Linux machine, edit the makefile (*.mak) to change the following setting:
OMROOT=[LangCPP_Dir]
In this syntax, [LangCPP_Dir] is the path to the Share/LangCpp directory.
4. To compile and link the application, enter the following command: gmake -f xxx.mak
In this command, xxx.mak is the name of the generated makefile.
5. An executable will be created in the current directory. When you run the executable on the target, the Rhapsody
animation toolbar will open on the host (for applications using instrumentation).
383 AnswerProduct versionPartner ContentInternal ContentCategoryReference ID

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

10278

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21323598