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:
-
In the IDE, select .
-
Enter a project name: hello_qnx. Select C++ Executable Project, then click Finish.
-
Click the Build Variants tab, then click ARM v7 (Little Endian). Click Finish.
-
Expand the hello_qnx project. Note the automatically generated source code.
-
Right-click over the hello_qnx project and select Build Project.
-
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
-
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
-
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