Supported build environments

Updated: October 28, 2024

The QNX Hypervisor 2.2 must be built in a QNX SDP 7.1 environment, and guests must be built in their own environments.

Your development host machine may be a Linux or Windows system. For more information about supported development hosts and for instructions on how to get and install the QNX SDP 7.1 release for your own machine, see the QNX SDP 7.1 Release Notes.

Note:

For readability, we use a + as a short form for “or more recent”; for example, “QNX SDP 7.1+” means “QNX SDP 7.1 or more recent”.

When you set up your QNX SDP 7.1+ environment, you should update your installation with any available QNX SDP 7.1 patches.

You can use a macOS development host to build a QNX Hypervisor; this development host OS is not supported for the QNX Hypervisor for Safety, however.

If you want to work with another supported QNX guest, or a Linux or Android guest, you must have the appropriate build environments on your development host. You will need to set up these environments and configure your builds accordingly (see Configuring your QNX build environment below, and Building guests in this chapter).

QNX Hypervisor

If you add vdevs or make other modifications to your hypervisor system, you must build and configure a new bootable image that includes your changes. The table below lists the build environments required for the hypervisor host and its guests:
Component Environment More information
QNX Hypervisor 2.2 host QNX SDP 7.1+

QNX SDP 7.1 documentation — this documentation explains the QNX SDP toolkit for developing embedded systems that run a safety or non-safety QNX OS variant.

QNX Neutrino 7.1 guest QNX SDP 7.1+ QNX SDP 7.1 documentation
Linux guest Linux Linux documentation
Android guest Android Android documentation

For information about the supported build environments, see the QNX Hypervisor Release Notes.

Configuring your QNX build environment

After you have downloaded QNX SDP 7.1 and any available patches, and have unpacked the package(s) on your development host, you must run the qnxsdp-env.sh script (for Linux) or the qnxsdp-env.bat batch file (for Windows) to set up your build environment, so you can build QNX Neutrino guests or the hypervisor host.

To do this on Linux, in your QNX Neutrino installation's base directory, source the script. For example, in a Bash shell:
cd ~/qnx710/
source qnxsdp-env.sh
If you are not using a Bash shell (e.g., if you are using Z shell), you may need to use a different command to source the script. For example:
export $(bash -c "source qnxsdp-env.sh")
To do this on Windows, open a command prompt by running cmd.exe, navigate to the installation's base directory and run the batch file. For example:
C:\Users\your_name\qnx710>qnxsdp-env.bat

This script sets the basic environment variables used to build a QNX OS image. You will set other variables when you configure your build.

Note: If you work with a Linux or Android guest, you need to set up the environment with the toolchains for these OSs.
  翻译: