Build applications on remote Linux devices | Qt Creator Documentation

- Qt Creator Documentation
- Build applications on remote Linux devices
- Qt Creator 19.0.1

Add remote Linux devices ◦ Configure SSH connections

# Build applications on remote Linux devices

In addition to building applications for a generic Linux device, you can use the toolchain on the device to build the applications on the device.

To build applications on a connected remote Linux device, the source code must be accessible on the device. You can copy or mount the source code on the device if it does not already reside there. To open the files on the connected device, go to File > Open From Device.

To build applications on a remote Linux device:

1. Go to Preferences > Devices > Devices, and then select Add to add a remote Linux device.
2. Go to Preferences > CMake > Tools, and then select Add.
3. In Path, select Remote in the dropdown menu in Browse (Choose on macOS) to add the path to the CMake executable on the remote Linux device.
4. Go to Preferences > Kits > Qt Versions, and then select and hold Shift and select the Add button to add the Qt version on the remote Linux device.
5. Go to Preferences > Kits > Compilers, and then select the compiler type in Add.
6. In C compiler path, select Remote in the dropdown menu in Browse (Choose on macOS) to add the path to the compiler on the remote Linux device.
7. Go to Preferences > Kits to add a kit for building on the device.
8. Select the device, CMake tool, Qt version, and compiler that you added above.
9. In Type in Run device and Build device, select remote Linux device. Select the actual device to run and build on in Device.
10. To specify build settings:
    1. Open a project for an application you want to develop for the device.
    2. Select Projects > Build & Run to activate the kit that you specified above.
11. Go to Run Settings to specify run settings. Usually, you can use the default settings.
12. When you run the project, Qt Creator deploys the application as specified by Deploy Settings.

See also Add CMake tools, How to: Develop for remote Linux, How to: Manage kits, and Developing for remote Linux devices.

Add remote Linux devices ◦ Configure SSH connections