summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_installation.qdoc
blob: d0cd66b015d4276ceab83229aea2f62f385fd46e (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
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

//! [11]
\badcode \QtVersion
cd /tmp
tar xf ~/Downloads/qt-everywhere-src-\1.tar.xz
\endcode
//! [11]


//! [12]
\badcode \QtVersion
mkdir -p ~/dev/qt-build
cd ~/dev/qt-build
/tmp/qt-everywhere-src-\1/configure
\endcode
//! [12]


//! [13]
cmake --build . --parallel
//! [13]


//! [14]
cmake --install .
//! [14]


//! [15]
PATH               - to locate qmake, moc and other Qt tools
//! [15]


//! [16]
PATH=/usr/local/Qt-%VERSION%/bin:$PATH
export PATH
//! [16]


//! [17]
setenv PATH /usr/local/Qt-%VERSION%/bin:$PATH
//! [17]