Creating a native "hello world" application

If this is your first time developing for the QNX CAR application platform, a simple "hello world" application is a good place to start.

Note that these instructions assume a PandaBoard target. If you're using a different target, substitute the appropriate CPU type.
To create a simple "hello world" app, follow these steps:
  1. In the IDE, select File > New > QNX C++ Project.
  2. Enter a project name: hello_qnx. Select C++ Executable Project, then click Finish.
  3. Click the Build Variants tab, then click ARM v7 (Little Endian). Click Finish.
  4. Expand the hello_qnx project. Note the automatically generated source code.
  5. Right-click over the hello_qnx project and select Build Project.
  6. Expand Binaries and select hello_qnx - [arm/le]. On the IDE toolbar, click the drop-down menu next to the Run As… button. Select 1. C/C++ QNX Application. Note the program output in the Console view:

    Welcome to the QNX Momentics IDE

  7. You can further test your program by copying the binary to the target and running it directly. For example, use WinSCP to copy this file from your host to the /tmp directory on your target:

    path\workspace\hello_qnx\arm\o-le-v7\hello_qnx

  8. In a target terminal window, enter this command:

    /tmp/hello_qnx

    You may need to change the permissions on the file if it doesn't execute. As before, see the program output in the Console view:

    Welcome to the QNX Momentics IDE