You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Qt V6.7.0 can be installed using the Qt online installer available from the Qt 6.7.0 release page [here][qt-online].
12
+
As an alternative, the Qt 6.7.0 offline installer can be used [here][qt-offline].
13
+
Packages for Windows and Linux are provided.
14
+
10
15
### Building on Windows
11
16
As a preliminary step, make sure that you have the following installed on your system:
12
17
* CMake 3.11 or above.
13
18
* Python 3.7 or above.
14
-
* Qt® 5 or above (5.15.2 is the default and recommended).
19
+
* Qt® 6 or above (6.7.0 is the default and recommended).
15
20
* Visual Studio® 2015 or above (2019 is the default).
16
21
17
-
Qt V5.15.2 can be installed using the Qt online installer available from the Qt 5.15.2 release page [here][qt-online].
18
-
As an alternative, the Qt 5.12.6 offline installer can be used [here][qt-offline].
19
-
Qt should be installed to the default location (C:\Qt\Qt5.xx.x).
22
+
Qt should be installed to the default location (C:\Qt\Qt6.xx.x).
20
23
Be sure to select msvc2017/msvc2019 64-bit during Qt installation, depending on the compiler you decide to use.
24
+
Select msvc2019 if using Visual Studio 2022.
21
25
A reboot is required after Qt is installed.
22
26
23
27
CMake can be downloaded from [here](https://cmake.org/download/).
@@ -27,7 +31,7 @@ This can be installed once Python is installed, as follows:
27
31
* pip install -U sphinx
28
32
* pip install sphinx_rtd_theme
29
33
30
-
Run the python pre_build.py script in the build folder from a command prompt. If no command line options are provided, the defaults will be used (Qt 5.15.2 and Visual Studio 2019)
34
+
Run the python pre_build.py script in the build folder from a command prompt. If no command line options are provided, the defaults will be used (Qt 6.7.0 and Visual Studio 2022)
31
35
32
36
Some useful options of the pre_build.py script:
33
37
* --vs <VisualStudioversion>: generate the solution files for a specific Visual Studio version. For example, to target Visual Studio 2017, add --vs 2017 to the command.
@@ -38,6 +42,8 @@ Go into the 'vs2019' folder (build/win/vs2019) and double click on the RMV.sln f
38
42
The Release and Debug builds of RMV will be available in the build/release and build/debug folders.
39
43
40
44
### Building on Ubuntu
45
+
If Qt is installed from a Qt installer, it should be installed to ~/Qt/Qt6.7.0 (the default of ~/Qt6.7.0 will not work).
46
+
41
47
Required dependencies can be installed as follows:
Qt V5.15.2 can be installed using the Qt online installer available from the Qt 5.15.2 release page [here][qt-online].
55
-
As an alternative, the Qt 5.12.6 offline installer can be used [here][qt-offline] (the .run file) and installed
56
-
to ~/Qt/Qt5.12.6 (the default of ~/Qt5.12.6 will not work).
57
60
58
-
XCB libraries are required for Qt v5.15.x (they are not needed for older Qt versions). By default, the CMake configuration will attempt to copy
59
-
these files from the Qt lib folder. If needed, the XCB library files (libxcb*) can be obtained from the /lib folder of the Radeon Developer Tool
60
-
Suite download found [here](https://gpuopen.com/tools/).
61
+
Qt6 can be installed from the package manager using:
62
+
```bash
63
+
sudo apt-get install qt6-base-dev
64
+
sudo apt-get install qt6-base-private-dev
65
+
```
66
+
As of this writing, this package on Ubuntu 2204 is 6.2.4
67
+
68
+
XCB libraries are required for Qt v5 and above. These can be installed by using:
69
+
```bash
70
+
sudo apt-get install libxcb-cursor-dev
71
+
```
61
72
62
73
Run the python pre_build.py in the build folder.
63
74
```bash
64
75
python3 pre_build.py
65
76
```
66
77
Or run the pre_build.py script with the -qt option to specify another version of Qt. For example:
67
78
```bash
68
-
python3 pre_build.py --qt 5.12.6
79
+
python3 pre_build.py --qt 6.7.0
69
80
```
70
81
The pre_build.py script will construct the output folders and build the necessary makefiles.
71
82
To build the release build, use:
@@ -81,25 +92,14 @@ Alternatively, building can be done directly from the prebuild script with the -
81
92
python3 pre_build.py --build
82
93
```
83
94
84
-
It is possible to use the system-installed version of Qt rather than using a Qt installer described above. At the time of this writing, Ubuntu 22.04 LTS
85
-
comes with Qt 5.15.3. To use the system Qt, a fake Qt package is needed. For Qt 5.15.3, this can be made by creating the required directory structure
95
+
If Qt is not installed from a Qt installer, a fake Qt package is needed. This can be made by creating the required directory structure
86
96
and setting up symbolic links to point to the system Qt lib and include directories:
Copy file name to clipboardExpand all lines: build/pre_build.py
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,6 @@
16
16
importargparse
17
17
importshutil
18
18
importsubprocess
19
-
importdistutils.spawn
20
19
importplatform
21
20
importtime
22
21
@@ -63,9 +62,10 @@
63
62
else:
64
63
parser.add_argument("--qt-root", default="~/Qt", help="specify the root directory for locating QT on this system (default: ~/Qt) ")
65
64
parser.add_argument("--qt-system", action="store_true", help="use the system-installed version of QT")
66
-
parser.add_argument("--qt", default="5.15.2", help="specify the version of QT to be used with the script (default: 5.15.2)" )
65
+
parser.add_argument("--qt", default="6.7.0", help="specify the version of QT to be used with the script (default: 6.7.0)" )
67
66
parser.add_argument("--clean", action="store_true", help="delete any directories created by this script")
68
67
parser.add_argument("--no-qt", action="store_true", help="build a headless version (not applicable for all products)")
68
+
parser.add_argument("--build-number", default="0", help="specify the build number, primarily to be used by build machines to produce versioned builds")
69
69
parser.add_argument("--update", action="store_true", help="Force fetch_dependencies script to update all dependencies")
70
70
parser.add_argument("--output", default=output_root, help="specify the output location for generated cmake and build output files (default = OS specific subdirectory of location of PreBuild.py script)")
71
71
parser.add_argument("--build", action="store_true", help="build all supported configurations on completion of prebuild step")
@@ -114,10 +114,10 @@ def mkdir_print(dir):
114
114
# Look for Qt path in specified Qt root directory
115
115
# Example:
116
116
# --qt-root=C:\\Qt
117
-
# --qt=5.15.2
118
-
# Look first for C:\\Qt\\Qt5.15.2\\5.15.2
117
+
# --qt=6.7.0
118
+
# Look first for C:\\Qt\\Qt6.7.0\\6.7.0
119
119
# (if not found..)
120
-
# Look next for C:\\Qt\\5.15.2
120
+
# Look next for C:\\Qt\\6.7.0
121
121
#
122
122
# If neither of those can be found AND we are using the default
123
123
# qt-root dir (i.e. the user did not specify --qt-root), then also
0 commit comments