Show Contents

# 3.2. Build and launch the applicationn

- 1. Build the project
- 2. Configure the application run environment
- 3. Launch the application in the remote device

## 1. Build the project

Follow these steps to build the project:

1. Click Build > Build All or Build > Build <PLATFORM>_QTQ_HelloWorld.
2. The build process starts and the output is shown in the Compile Output console.

> Note If you receive an error similar to the following while building your project, you have not sourced the toolchain environment setup script correctly before executing Qt Creator. See 3. Start Qt Creator from a configured toolchain shell for more information.

>     make: c: Command not found
>     make: o: Command not found

## 2. Configure the application run environment

Follow these steps to ensure the remote application is executed within a clean environment and the correct display is selected when it is launched:

1. Click the Projects icon.
2. Under Build & Run, select Run. The right pane displays Run Settings.
3. Scroll down the right pane until the Run Environment section is displayed. Click Details.
4. Select Clean Environment in Base environment for this run configuration setting to ensure the application uses a clean environment when it is launched.
5. Add a new environment variable to select the correct display when the application is launched:

1. Click the Add button next to the environment variables list.
2. Set DISPLAY as the variable name.
3. Set :0.0 as the variable value.

## 3. Launch the application in the remote device

Follow these steps to launch the application in the remote device:

1. In the left vertical toolbar, click the Run button (green play icon).
2. The application is automatically transferred and launched in the remote device, displaying a window with the "Hello, World!" text.

© 2018 Digi International Inc. All rights reserved.
3.2. Build and launch the applicationn updated on 31 January 2018 09:04:43 PM