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:
- a QNX Target System Project, which specifies how the IDE communicates with your target; once
you've created a QNX Target System Project, you can reuse it for every program that runs on that
particular target.
- a launch configuration, which describes how the program runs on your target; you'll need to
set this up only once for that particular program.
To run a project:
-
To create a QNX Target System Project, from the menu, select .
-
In the list, expand QNX.
-
Select QNX Target System Project.
-
Click Next.
-
Type a name for your target.
-
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.
-
Click Finish.
Next, you'll see your new QNX Target
System Project in the Project Explorer view.
-
Make sure you build your project first before you create a launch configuration for it.
-
To create a launch configuration to run your project, in the Project Explorer view, expand the Binaries folder.
-
Right-click on your project's executable file.
-
Select .
-
In the Name field, give your launch configuration a name.
-
In the Target Options section, select your target.
-
Click the Run button.
Your program runs, and the IDE shows its output (if any) in the Console view.