aboutsummaryrefslogtreecommitdiffstats
path: root/doc/qtcreator/src/projects/creator-only/creator-projects-settings-run-desktop.qdocinc
blob: 27fe9ade256fe1659f6ef78ae5797cf161d82312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

/*!
//! [run settings desktop]

    \section1 Specifying Run Settings for Desktop Device Types

    You can specify command line arguments to be passed to the executable
    and the working directory to use. The working directory defaults to
    the directory of the build result.

    Select \uicontrol {Add Deploy Step} > \uicontrol {CMake Install} to add the
    \l{https://cmake.org/cmake/help/latest/manual/cmake.1.html#install-a-project}
    {install} option. It runs installation without using the generated build
    system or the native build tool. \QC automatically adds the value of the
    \uicontrol {Working directory} field as the installation directory in the
    \c {--install} signature.

    \image qtcreator-settings-run-desktop.webp {Run Settings}

    For console applications, check the \uicontrol{Run in terminal} check box.
    To specify the terminal to use on Linux and \macos, select \uicontrol Edit
    > \uicontrol Preferences > \uicontrol Environment > \uicontrol System.

    To run with special environment variables set up, select them in the
    \uicontrol {Run Environment} section. For more information, see
    \l {Selecting the Run Environment}.

    When building an application, \QC creates a list of directories where the
    linker will look for libraries that the application links to. By
    default, the linked libraries are made visible to the executable that
    \QC is attempting to run. Usually, you should disable this option only if it
    causes unwanted side-effects or if you use deployment steps, such as
    \c {make install}, and want to make sure that the deployed application will
    find the libraries also when it is run without \QC.

    To disable library linking for the current project, deselect the
    \uicontrol {Add build library search path to PATH} check box. To disable
    library linking for all projects, select \uicontrol Edit >
    \uicontrol Preferences > \uicontrol {Build & Run}, and then deselect the
    \uicontrol {Add linker library search paths to run environment} check box.

    The \uicontrol {Use debug version of frameworks (DYLD_IMAGE_SUFFIX=_debug)} option
    (only available on \macos) enables you to debug (for example, step into)
    linked frameworks, such as the Qt framework itself. You do not need this
    option for debugging your application code.

    On Linux, select the \uicontrol {Run as root user} check box to run the
    application with root user permissions.

    You can also create custom executable run configurations where you
    can set the executable to run. For more information, see
    \l{Specifying a Custom Executable to Run}.

//! [run settings desktop]
*/