Cross Compilation for QNX 7.x using Project Files
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.
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
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 macOS, 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.