Home
Developer Resources
Technical Articles

QNX Technical Articles

QNX Software Development Platform for x86 Targets 6.5.0: Installation Note Linux Hosts

QNX® Software Development Platform for x86 Targets 6.5.0: Installation Note — Linux Hosts

Date of this edition: July 22, 2011

Target OS: This development platform produces software that's compatible with x86 targets that are running QNX® Neutrino® 6.5.0.

Host OS: You can install this package on Linux Red Hat Enterprise Linux 5.4 Desktop 32- and 64-bit, Red Hat Fedora 12, Ubuntu Workstation 9.10 32- and 64-bit, or openSUSE 11.2.


Caution: If you downloaded QNX SDP 6.5.0 from our website between June 28, 2010 and July 12, 2010, please read the following:

Build 201006230248 of 6.5.0 contained a filesystem error. If you installed that version, uninstall it, and then install build 201007091524. To determine which version you have, check the build number in the archive name or in base_dir/install/qnxsdp/6.5.0/version. On self-hosted QNX Neutrino systems, you can also use the uname -v command to get a version timestamp that identifies the build:

Build Timestamp
201006230248 2010/06/23-02:11:33EDT
201007091524 2010/07/09-14:44:03EDT


Note:
  • This is a special version of QNX SDP that's for x86 targets only. If you want to develop for other targets, install the full QNX Software Development Platform 6.5.0. You can't upgrade the x86 development suite into the full version.
  • 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.

Contents

Licensing

QNX SDP 6.5.0 introduces a new licensing scheme:

  • There are several QNX Development License streams that govern how the QNX Software Development Platform can be used in different situations. The key on your license certificate will cause the appropriate license agreement to be displayed when you install QNX SDP; that development license governs your use of the product.
  • 6.5.0 doesn't accept license keys from earlier versions of QNX SDP.
  • If you have a support plan for an earlier version of QNX SDP, you can get a license key for 6.5.0 from our website; go to http://www.qnx.com, log into your myQNX account, and click Upgrade to QNX SDP 6.5.
  • Some licensing is now for a specific user. If your license key indicates that you have a “named user” license, the activation requires that you provide an email address.

Once you've installed the QNX Software Development Platform, you can find all the license agreements in base_dir/install/qnxsdp/6.5.0, where base_dir is where you installed SDP (see the output from the qconfig command).

For more information about license agreements, see the Licensing area of http://www.qnx.com, or email .

Before you start

Before you install this software, please note the following:

  • The installers do a fresh installation of the QNX Software Development Platform.
  • On Linux and Windows hosts, QNX SDP includes the QNX Momentics Tool Suite, which you can use to develop applications to run on the QNX Neutrino RTOS on a separate target system.
  • QNX SDP for self-hosted QNX Neutrino systems first installs the QNX Neutrino RTOS, followed by the QNX Momentics Tool Suite.
  • QNX SDP includes everything you need to build for all supported target platforms (ARM, MIPS, PowerPC, SH-4, and x86). There are also special versions of QNX SDP for x86 targets only.
  • We no longer support development for ARMBE targets, but we once again support it for MIPS.
  • We post CRC and MD5 checksums with the packages in the Download area on our website. If you download a CD or DVD image or an installer from our website, make sure that its checksum matches that given on the website. On Unix-style OSs (e.g. QNX Neutrino, Linux), you can use the cksum utility to calculate the CRC checksum. Microsoft doesn't support such utilities on Windows, but they're available from third parties.
  • QNX SDP 6.5.0 can coexist with QNX SDP 6.4.0, 6.4.1, and QNX Momentics 6.3, but if you want 6.5.0 to replace 6.4.1, 6.4.0, or 6.3, you must uninstall the older versions and any updates to them before installing 6.5.0.

    Coexistence with QNX Momentics 6.2.1 is supported only on Windows hosts (we didn't support Linux hosts in 6.2.1).

  • For information about new features and known issues in QNX SDP, see the release notes. The online documentation includes a copy, but for for the most up-to-date version, go to our website, www.qnx.com, log into your myQNX account, and then go to Downloads-->QNX Software Development Platform 6.5.x.
  • For information about using BSPs with QNX SDP 6.5.0, see the BSP Migration Guide in the BSPs and Drivers project on Foundry27.
  • If you're running selinux (secure Linux), disable it before installing QNX SDP. Otherwise, after you've entered the license key and clicked Next, the installation will fail with this error:
    java.lang.UnsatisfiedLinkError: no qnxlic in java.library.path
  • In order to run the installer and the IDE on Ubuntu 64-bit, you need to install the 32-bit libraries:
    sudo apt-get install ia32-libs
      

    Answer yes to all the questions. (Ref# 70567)

  • In order to install QNX SDP, the QNX license file must be writable by everyone. If the installer stops and warns you that this file isn't writable, you can make it so by typing:
    chmod a+rw /etc/qnx/license/licenses
      

    (Ref# 62419)

System requirements

Host OS:

  • Linux Red Hat Enterprise Linux 5.4 Desktop 32- and 64-bit
  • Red Hat Fedora 12
  • Ubuntu Workstation 9.10 32- and 64-bit
  • openSUSE 11.2
Minimum Recommended
Processor Pentium III, 700 MHz Pentium 4, 2 GHz or more
RAM 256 MB 512 MB
Disk space 1.1 GB 1.1 GB
Monitor 1024×768 1280×1024

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

VMware compatibility

If you intend to use the QNX SDP on VMware, to ensure that VMware is supported for your host, search the compatibility guide located at http://www.vmware.com/resources/compatibility/search.php.

Installing QNX SDP

To install this software:

  1. Boot into Linux and log in as root, or as a user with administrative privileges on Ubuntu.
  2. Log into your myQNX account on our website, and then go to the Download area.
  3. Download the QNX SDP 6.5.0 package, qnxsdp-6.5.0-x86-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.0-x86-20101234567-linux.bin
  6. Run the script at the system prompt:
    • If you use sudo (as would be the case on Ubuntu), you must specify the -E option to preserve the environment. For example:
      sudo -E ./qnxsdp-6.5.0-x86-20101234567-linux.bin
          
    • On other Linux hosts, type (for example):
      ./qnxsdp-6.5.0-x86-20101234567-linux.bin
          
  7. Follow the instructions on your screen. We recommend you use the default location for the software, /opt/qnx650.

    The installer will ask if you wish to install a package of GNU Public License programs, such as tar and sed. We recommend that you do so for development machines.

    If QNX Software Systems has a contract with you to support server-based licenses (Automated License Management), you have a special license key that tells the software to enforce these licenses. In this case, the installer presents a panel where you can specify the hostname or IP address of the server, and the port on which the server is listening for connections. If you're using the default port, you can leave the port blank.

  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, www.qnx.com, log into 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:

    base_directory/install/qnxsdp/6.5.0/AddLicense.bin

    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


Note: 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:
    • If you use sudo (as would be the case on Ubuntu), you must specify the -E option to preserve the environment:

      sudo -E base_dir/_uninstall/qnxsdp/6.5.0/uninstaller.bin

    • On other Linux hosts, type:

      base_dir/_uninstall/qnxsdp/6.5.0/uninstaller.bin

  3. Log out and back in again.

Note: 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.

Uninstalling previous versions

To uninstall a previous version, for example, QNX Momentics 6.3.2, do the following:

  1. Boot into Linux and log in as root, or as a user with administrative privileges on Ubuntu.
  2. Type:

    632_base_directory/_uninstall/qnx632/uninstaller.bin

  3. Log out and back in again.

Note:
  • You must specify the full path name of the uninstaller in order to successfully remove the previous version of QNX Momentics. (Ref# 61384)
  • You must perform the additional steps described in the Release Notes under Known Issues: Installing and uninstalling, (Ref# 58784).

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.

Getting started with the documentation

After you've installed QNX SDP, you'll find an extensive set of HTML documentation:

  • On Linux and Windows development hosts, you can read it in the Integrated Development Environment's help system. On Linux, use the qde command to start the IDE; on Windows, use the desktop icon.
  • On self-hosted QNX Neutrino systems, you can read it in the Photon helpviewer, or you can use a web browser to display:

    ${QNX_TARGET}/usr/help/product/momentics/bookset.html

The “roadmap” page contains links to the various HTML booksets that accompany the OS. We recommend that you start with Welcome to the QNX Software Development Platform for an overview of QNX SDP. Next, see 10 Steps to Developing a QNX Program: Quickstart Guide for a short tutorial that will help you get started, and then refer to the other documents (System Architecture, QNX Neutrino Programmer's Guide, Library Reference, Utilities Reference, and so on).

You can install and work with multiple versions of QNX Neutrino. Whether you're using the command line or the IDE, you can choose which version of the OS to build programs for. For more information, see the IDE User's Guide or the QNX Neutrino Programmer's Guide.

Technical support

To obtain technical support for any QNX product, visit the Support area on our website (www.qnx.com). You'll find a wide range of support options, including community forums.

For questions about installing and using QNX SDP, see the QNX Momentics Getting Started forum on our Foundry27 site, http://community.qnx.com. There are other forums for specific topics, including the QNX Neutrino RTOS, development tools, networking, Board Support Packages, and so on.