Products Support Documentation Download
QNX Momentics 4.7 Platform Release Notes

Introduction

These instructions are for RDM targeting QNX using QNX Momentics 4.7 project files.

Compiling RDM for QNX requires a native build for your host development platform and a cross compiled build for your QNX target.

Native Build for the Host Development Platform

Before you can compile RDM for QNX, you need a native build for your host development platform. The following sections explain how to do this for GNU/Linux, OS X, and Windows.

Native Build for GNU/Linux or OS X

Please follow the steps outlined in Using "configure" and Using "make". Pay special attention to that you need to provide the command line option –enable-qnx-project-files when running configure for the QNX project files to be configured.

Native build for Windows

Please follow the steps outlined in README-windows.txt.

Cross Compiled Build for QNX

Assuming you have done a native build for your host development platform using the configure script and make on UNIX or the Visual Studio project files on Windows, you can now do a cross compiled build for QNX. You have two options as explained in the following subsections.

Cross Compiled Build for QNX using QNX Makefiles

Assuming you have done a native build for your host development platform using the configure script and make on UNIX or the Visual Studio project files on Windows, you can now do a cross compiled build for QNX.

Change the current working directory to target/qnx;

$ cd target/qnx

You can now do a cross compiled build for the QNX target by running make:

$ make

Cross Compiled Build for QNX using QNX Momentics

Assuming you have done a native build for your host development platform using the configure script and make on UNIX or the Visual Studio project files on Windows, you can now do a cross compiled build for QNX.

Start Momentics:

$.../qde           c:> .../qde

Create a work space or use an existing one.

Next, import the RDM project files into your work space:

File->Import

Then select Existing Projects into Workspace:

General->"Existing Projects into Workspace"

and click Next.

Select the root directory by browsing to:

"target/qnx"

relative to the top source directory. If you did an out of source build on GNU/Linux or OS X, you will need to specify "target/qnx" relative to the top build directory.

Click Finish:

Finish

You should now have one project file for each example, tutorial, and library. The project files for all the examples and the tutorials have build target references to the libraries, so if you do not wish to wait for everything to build, you can choose to build one example.