This guide explains how to build applications for QNX Neutrino RTOS 6.6 based on the Kaa C endpoint SDK (further, the C SDK).
NOTE: The further instructions are expected to be executed on the host machine.
Host OS: Ubuntu 14.04 LTS 64-bit.
Target OS: QNX Neutrino RTOS 6.6.
Installing QNX® Software Development Platform
To install QNX Software Development Platform (SDP), proceed as follows:
- Register as a developer and download the following components:
- Install SDP. Note: It is recommended to install SDP in the default directory (for Linux platforms, it is /opt/qnx660).
- Install Apply Patch and Header Files Patch.
Configuring the environment
Set the path to the root directory of SDP.
Set the target architecture.
Set paths to host and target SDP files.
Installing third-party components for C SDK
The following third-party components must be installed before building the C SDK.
- Mandatory: OpenSSL.
To install these libraries, proceed as follows:
Set the path to the directory where third-party dependencies will be put after build.
Creating applications based on C SDK
Building C SDK
Before creating applications based on the C SDK, you should obtain the C SDK and build it into a static library. To do so, generate the C SDK in Admin UI, then extract the archive,
cd to it and execute the following steps:
For more details on building the C SDK for Linux, please refer to this page.
To quickly start with the Kaa IoT platform, you can download one of Kaa demo applications from the Kaa Sandbox and run it on on a target machine with QNX Neutrino RTOS.
For this example, you need to download the notification demo from the Kaa Sandbox to your host machine. Build it and export an executable file to the target machine. Then run the demo, as follows
Build the demo.
Export the executable file to the target machine.
Run the demo.
If the build is successful you will see the following output on the target terminal: