Ported open source projects
QNX ports of open source projects provided by QNX don't include build system configurations within the open source repositories themselves.
Instead, QNX maintains a separate repository that contains these configuration files.
Ultimately, cross compilation of the ported projects only requires a
simple call to the make
utility:
make -C build-files/ports/project_name
All QNX ports use QNX recursive Makefiles, regardless of the build system used in the open-source project.
This offers the following advantages:
A common and simple interface.
"Out-of-source" builds (generated artifacts are stored outside the source tree).
Cross compilation support for all architectures (with separate folders for each architecture).
Partial build support (for example: only x86 architecture).
For an example of creating a recursive Makefile, visit the "A single application" page in the Programmer's Guide.
The following sections cover various build systems and provide tips for cross compiling existing projects for QNX.