summaryrefslogtreecommitdiffstats
path: root/doc/src/platforms/integrity-building-qt-imx6.qdocinc
blob: 37a203284c2172ccd6424e2fcdd6840d3f75184f (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:FDL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Free Documentation License Usage
** Alternatively, this file may be used under the terms of the GNU Free
** Documentation License version 1.3 as published by the Free Software
** Foundation and appearing in the file included in the packaging of
** this file. Please review the following information to ensure
** the GNU Free Documentation License version 1.3 requirements
** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
** $QT_END_LICENSE$
**
****************************************************************************/


/*!
//! [building qt for imx6quad]
    To set up the development environment for Qt for INTEGRITY, you need to
    build Qt from the sources for the i.MX6 Quad board. Before building Qt,
    create a shell script that will run the exports for your environment.

    \section1 Creating Script for Running Exports

    Create a new shell script \e{setEnvironment.sh}, and save it under
    your home folder. Add the following export commands to the script:

    \badcode
    export PATH=$PATH:/usr/ghs/comp_201654
    export INTEGRITY_DIR=/usr/ghs/int1144
    export INTEGRITY_BSP=platform-cortex-a9
    export GL_INC_DIR=/usr/ghs/int1144/INTEGRITY-include/Vivante/sdk/inc
    export GL_LIB_DIR=/usr/ghs/int1144/libs/Vivante
    \endcode

    These exports assume you have used the default installation directories
    while installing MULTI IDE and INTEGRITY (see
    \l {Installing Platform Dependencies}). If you have not used the default
    directories, you need to adjust the exported paths accordingly.

    To initialize your build environment, run the following command in a terminal:

    \badcode
    source ~/setEnvironment.sh
    \endcode

    \note You need to run this command in your terminal every time you build Qt,
    or use the \c qmake build system.

    \section1 Getting Qt Source Code

    You can download the Qt source code via your
    \l {https://login.qt.io/login} {Qt Account}.

    You can also get the Qt sources via the Git version control system. Qt Wiki has
    instructions for getting Qt sources via Git, see
    \l {https://wiki.qt.io/Building_Qt_5_from_Git#Getting_the_source_code}.
    You find the step by step instructions also from \l {Getting Qt Sources via Git}.

    \section2 Getting Qt Sources via Git

    Clone the top-level Qt 5 repository by running the following command in
    a terminal:

    \badcode
    git clone git://code.qt.io/qt/qt5.git
    \endcode

    \note If you are behind a firewall and want to use the HTTPS protocol,
    you can clone the top-level Qt 5 repository with the following command:

    \badcode
    git clone https://code.qt.io/qt/qt5.git
    \endcode

    Check out the target branch and the Qt sources with the following commands:

    \badcode
    cd qt5
    git checkout <Qt version>
    perl init-repository
    \endcode

    For example, the \c {git checkout} command for Qt 5.9.0 is \c {git checkout 5.9.0}.

    The init-repository script initializes the Qt 5 repository and clones various
    Qt 5 sub-modules (see
    \l {https://wiki.qt.io/Building_Qt_5_from_Git#Getting_the_submodule_source_code}).
    Qt modules supported by Qt for INTEGRITY are listed in \l {Supported Qt Modules}.

    \section1 Configuring Qt

    Configure Qt for the i.MX6 Quad board with the following command:

    \badcode
    cd <Qt installation directory>
    ./configure -developer-build -xplatform integrity-armv7-imx6 -confirm-license
    -opensource -nomake examples -nomake tests -no-dbus -silent -opengl es2 -static
    \endcode

    \note INTEGRITY supports only static Qt builds.

    \section1 Building Qt

    Build Qt with the \c make command in the terminal. You can run \c make with as
    many cores on your host machine as you desire. In our example we use six cores:

    \badcode
    make -j6
    \endcode

    \section1 Installing Qt

    If you have not used the configure options
    \c {-developer-build} or \c {-prefix $PWD/qtbase} in \l {Configuring Qt},
    run the following command in a terminal:

    \badcode
    cd <Qt installation directory>
    make install
    \endcode

    If you have used the configure options \c {-developer-build} or
    \c {-prefix $PWD/qtbase}, you can use Qt from the build
    directory, without running the \c {make install} command.

    Qt is now configured and built for the i.MX6 Quad board.
//! [building qt for imx6quad]
*/