You get a bonus - 1 coin for daily activity. Now you have 1 coin

Building and running a Qt project. Build and Run Settings

Lecture



You can specify build settings in the Projects mode.

Building and running a Qt project.  Build and Run Settings

To add a new build configuration, click Add and select the type of configuration to add. You can add as many build configurations as needed.

To delete the currently selected build configuration, click Delete .

Editing build configurations

To edit the build configuration:

  1. Select the assembly configuration that you want to edit in Edit Assembly Configuration .
  2. In the General section you can specify:
    • Qt profile used to build your projects. See Selecting a Qt Profile for details.
    • A set of tools required to build a project.
    • By default, projects are collected in a separate directory from the source code, the so-called shadow builds. This prevents the generated files from being mixed for each target platform.

      Note: The shadow assembly is not supported by the Symbian build system. Also on Windows, shadow build is not supported for Maemo. If you build for only one target platform, you can disable the Shadow build option.

Assembly stages

The Qt Creator build system is based on qmake and make. In the Assembly Steps section, you can change their settings. Qt Creator runs the make command using the Qt profile defined in the current build configuration.

Building and running a Qt project.  Build and Run Settings

Cleaning steps

You can use the cleanup process to delete intermediate files. This process can help you fix implicit errors when building a project.

Building and running a Qt project.  Build and Run Settings

You can define the steps for cleaning your assembly in the Assembly Steps section:

  • To add a cleanup step using make or a specific cleanup process, click Add cleanup step and select the type of step you want to add.

    By default, special steps are disabled. To activate specific steps, select the Enable this step option.

  • To delete a cleaning step, click Delete .
  • To change the order of the stages, click Building and running a Qt project.  Build and Run Settings .

Build Environment Variables

You can specify the environment of the environment that you want to use for the assembly in the Variables section of the environment of the assembly . By default, the environment in which Qt Creator is running is used, and the Qt profile used is included in it. Depending on the selected Qt profile, Qt Creator will automatically set the necessary environment variables. You can change existing environment variables or add, return or reset new variables depending on the requirements of your project.


Comments


To leave a comment
If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Cross platform programming

Terms: Cross platform programming