File tree 1 file changed +77
-0
lines changed
1 file changed +77
-0
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,80 @@ website.
6
6
7
7
The original examples from the website can be found
8
8
[ here] ( https://github.com/JoeyDeVries/LearnOpenGL/tree/master ) .
9
+
10
+ ## Building From Source
11
+
12
+ ### Install Qt
13
+
14
+ You can install Qt from the online installer from the Qt [ website] ( https://www.qt.io/download-dev ) .
15
+
16
+ Alternatively, you can use the ` install-qt.sh ` script from the ` scripts ` directory.
17
+ ```
18
+ $ ./scripts/install-qt.sh -d $HOME/Qt --version 6.7.0 --target desktop qtbase
19
+ ```
20
+ This script requqres Bash-like Shell.
21
+
22
+ #### Ubuntu / Debian
23
+
24
+ ```
25
+ $ sudo apt install qt5-default
26
+ ```
27
+
28
+ #### macOS
29
+ Qt is available in [ Brew] ( https://formulae.brew.sh/formula/qt )
30
+ or [ macports] ( https://ports.macports.org/port/qt6/ ) .
31
+ ```
32
+ $ brew install qt
33
+ ```
34
+ or
35
+ ```
36
+ $ sudo port install qt6
37
+ ```
38
+
39
+ #### Windows
40
+
41
+ Use the online installer from the Qt [ website] ( https://www.qt.io/download-dev )
42
+
43
+ ### Install Qbs
44
+
45
+ #### Ubuntu / Debian
46
+
47
+ ```
48
+ $ sudo apt install qbs
49
+ ```
50
+
51
+ #### macOS
52
+ Qbs is available in [ Brew] ( https://formulae.brew.sh/formula/qbs )
53
+ or [ macports] ( https://ports.macports.org/port/qbs/ ) .
54
+ ```
55
+ $ brew install qbs
56
+ ```
57
+ or
58
+ ```
59
+ $ sudo port install qbs
60
+ ```
61
+
62
+ #### Windows
63
+ Qbs is available in [ Chocolatey] ( https://community.chocolatey.org/packages/qbs#versionhistory )
64
+ ```
65
+ $ choco install qbs
66
+ ```
67
+
68
+ #### Configuring Qbs
69
+ ```
70
+ $ qbs setup-toolchains --detect
71
+ $ qbs setup-qt $(which qmake) qt
72
+ $ qbs config defaultProfile qt
73
+ ```
74
+
75
+ #### Buiding with Qbs
76
+ From the source directory, run:
77
+ ```
78
+ $ qbs resolve
79
+ $ qbs build
80
+ ```
81
+
82
+ #### Using IDE
83
+ Or you can simply open the ` project.qbs ` file in QtCreator or the source directory in VScode.
84
+ For VScode you might want to use the
85
+ [ Qbs plugin] ( https://marketplace.visualstudio.com/items?itemName=qbs-community.qbs-tools ) .
You can’t perform that action at this time.
0 commit comments