Running binaries for a project

Note: Before running an application, you must prepare your target. If it isn't already prepared, you must do so now. For information about configuring your target, see the Preparing Your Target chapter in this guide.

After you build a project, you're ready to run it. The IDE lets you run or debug your executables on a remote QNX Neutrino target machine. (For a description of remote targets, see the IDE Concepts chapter.)

To run or debug your program, you must create both of the following:


Note: For a complete description of how to create a QNX Target System Project, see the Project and Wizard Properties Reference chapter in this guide.

For a complete description of the Launch Configurations dialog and its available options, see the Launch Configurations Reference chapter in this guide.

To run a project:
  1. To create a QNX Target System Project, from the menu, select File > New > Other… .
  2. In the list, expand QNX.
  3. Select QNX Target System Project.
  4. Click Next.

    New QNX System Target project

  5. Type a name for your target.
  6. Type your target's hostname or IP address.
    Note: When you update the Target properties from the Attributes pane, your changes won't be updated if you modify the Hostname or IP address, and then click Apply. You must click OK to confirm the changes and close the properties window for the changes to take effect.
  7. Click Finish. Next, you'll see your new QNX Target System Project in the Project Explorer view.
  8. Make sure you build your project first before you create a launch configuration for it.
  9. To create a launch configuration to run your project, in the Project Explorer view, expand the Binaries folder.
  10. Right-click on your project's executable file.
  11. Select Run As > C/C++ QNX Application .

    New launch configuration

  12. In the Name field, give your launch configuration a name.
  13. In the Target Options section, select your target.
  14. Click the Run button.
Your program runs, and the IDE shows its output (if any) in the Console view.
Related concepts
The C/C++ perspective
Understanding projects in the IDE
Developing projects in the IDE
Working with projects
Writing code
Building projects
More development features
Related tasks
Deleting a project
Building all projects