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

//! [0]
cd /tmp
gunzip qt-everywhere-src-%VERSION%.tar.gz        # uncompress the archive
tar xvf qt-everywhere-src-%VERSION%.tar          # unpack it
//! [0]


//! [1]
cd /tmp/qt-everywhere-src-%VERSION%
./configure
//! [1]


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


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


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


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


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


//! [11]
cd /tmp
gunzip qt-everywhere-src-%VERSION%.tar.gz        # uncompress the archive
tar xvf qt-everywhere-src-%VERSION%.tar          # unpack it
//! [11]


//! [12]
cd /tmp/qt-everywhere-src-%VERSION%
./configure
//! [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]