Linux Hosts

This chapter includes the following:

Note: If you've already installed an evaluation version of QNX SDP 6.5.0, and you've purchased and received a commercial QNX license or you've received an evaluation extension license, please go to Commercializing your evaluation software,” below.

Before you start

System requirements

Host OS:

Minimum Recommended
Processor Pentium III, 700 MHz Pentium 4, 2 GHz or more
RAM 256 MB 512 MB
Disk space 2.2 GB 3.1 GB
Monitor 1024×768 1280×1024

The System Profiler in the IDE requires a minimum color depth of 16 bits.

QNX SDP 6.5.0 SP1 requires 250 MB of disk space; the version for x86 targets requires 140 MB.

Installing QNX SDP 6.5.0 SP1

Caution: If you just installed QNX SDP 6.5.0, be sure to log out and back in again before you install Service Pack 1. If you don't, the environment won't be set up properly, and some files might not be installed properly.

To install QNX SDP 6.5.0 SP1, do the following:

  1. Boot into Linux and log in as root, or as a user with administrative privileges on Ubuntu.
  2. Log in to your myQNX account on our website, and then go to the Download area.
  3. Download the QNX SDP 6.5.0 SP1 package, qnxsdp-6.5.0SP1-nnnnnnnnnnnn-linux.bin, where nnnnnnnnnnnn is a build number. The package is a .bin script.
  4. Verify that the checksum of the package matches the one given in the Download area.
  5. Run chmod to make the script executable. For example:
    chmod a+x qnxsdp-6.5.0SP1-20121234567-linux.bin
  6. Run the script at the system prompt:
  7. Follow the instructions on your screen.
  8. Log out and log back in again, so that the environment is set up correctly.

Activating QNX SDP

The QNX Momentics Tool Suite and certain related products require activation. If you don't activate the product within the specified timeframe, the product will cease to function until you activate it. No personal data is transferred during the activation process. If your license key indicates that you have a “named user” license, the activation requires that you provide an email address.

Note: On some distributions, the activation dialog doesn't appear automatically. (Ref# 68599)

Workaround: Log out and back in again, and then start the activation program manually:

/etc/qnx/bin/qnxactivate -a

Activating automatically

If your development host is connected to the Internet, you can activate QNX SDP automatically.

Activating manually

If your machine isn't connected to the Internet, you must activate your software manually from a machine that is, by doing the following:

  1. In the QNX SDP Activation dialog, click Activate Manually.

    The Manual Activation dialog appears with an activate-prompt key. This dialog has a button that you can use to save the activate-prompt key in a file, /etc/qnx/license/activate_prompt_key.txt. Using this file eliminates the need to retype the key, which can be error-prone.

  2. Transfer the activate-prompt key to the machine that's connected to the Internet.
  3. Go to our website,, log in to your myQNX account, and choose Manual Product Activation.
  4. Enter the activate-prompt key into the form that appears, and then click Generate Response Key. This will return an activate-response key.
  5. Copy the activate-response key and paste it in a file.
  6. Transfer the file into /etc/qnx/license/activate_response_key.txt on your QNX SDP development host.
  7. If you closed the QNX SDP Activation dialog, open it again by entering the following at a terminal prompt:
    /etc/qnx/bin/qnxactivate -a
  8. Choose Activate Manually, and use the Load Response from File button to load the activate-response key, and then click Activate.

If you choose not to activate at the time of installation, you can activate later by entering the following at a terminal prompt:

/etc/qnx/bin/qnxactivate -a

Commercializing your evaluation software

If you installed an evaluation copy of QNX SDP 6.5.0, and you've now received a commercial QNX license, do the following to add your commercial license:

  1. Type the following at a terminal prompt:


    where base_directory is where you installed QNX SDP (see Determining your base directory,” below).

  2. In the QNX SDP License Key Entry dialog, fill in the field with the license-key information.
  3. When you've finished entering the information, click Add to save the license-key information and configure your QNX SDP tools to use this file.
  4. After entering the license key, you'll be presented with the appropriate license agreement. You'll need to accept it in order to successfully add a license.

Uninstalling QNX SDP 6.5.0 and SP1

  • It isn't possible to uninstall just QNX SDP 6.5.0 SP1; if you uninstall it, you'll completely uninstall QNX SDP 6.5.0.
  • Use the 6.5.0 SP1 uninstaller, not the one for 6.5.0.
  • You should uninstall QNX products in the reverse order in which you installed them. To determine this order, use a command like this:

    ls -lt `find base_directory -name "*uninstall*.bin"`

    where base_directory is where you installed the QNX Software Development Platform.

To uninstall QNX SDP, do the following:

  1. Boot into Linux and log in as root, or as a user with administrative privileges on Ubuntu.
  2. Go to a directory outside the base_dir directory (see Determining your base directory,” below) and run the uninstaller:

    Note: The command-line prompt doesn't return after a successful uninstallation. (Ref# 161467)

    Workaround: Press Ctrl-C.

  3. Log out and back in again.

  • If the uninstaller doesn't fully remove all the components, you can use the QNXLinuxCleanup utility to clean up your machine. You can find this utility and documentation for it in the Utilities directory on the DVD, or on our website.
  • If you have other versions of QNX SDP installed, you need to explicitly choose which version of it that you want to use after you uninstall 6.5.0 SP1.

Determining your base directory

To determine the base directory for QNX SDP, open a command shell and use the qconfig command. For example:

$ qconfig
QNX Installations

  Installation Name: QNX Software Development Platform 6.5.0
            Version: 6.5.0
     Base Directory: /opt/qnx650/
           QNX_HOST: /opt/qnx650/host/linux/x86/
         QNX_TARGET: /opt/qnx650/target/qnx6/

The base directory in this example is /opt/qnx650/, but it could be different on your machine, depending on where you installed QNX SDP.