Skip to content

Commit 06804a3

Browse files
authored
Update to Qt 6.7.2 (#7)
1 parent d741a40 commit 06804a3

File tree

5 files changed

+59
-244
lines changed

5 files changed

+59
-244
lines changed

.github/workflows/package-build.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ jobs:
2424
]
2525
include:
2626
- name: linux-x86_64
27-
os: ubuntu-latest
28-
container:
29-
image: ubuntu:18.04
27+
os: ubuntu-20.04
3028
arch: x86_64
3129
- name: macos-x86_64
32-
os: macos-11
30+
os: macos-12
3331
arch: x86_64
3432
- name: macos-arm64
35-
os: macos-11
33+
os: macos-14
3634
arch: arm64
3735
- name: windows-x86_64
3836
os: windows-2019
@@ -51,13 +49,25 @@ jobs:
5149
if: contains(matrix.os, 'macos')
5250
run: |
5351
xcode-select --print-path
54-
make ARCH=${{ matrix.arch }}
52+
make ARCH=${{ matrix.arch }} BUILD_THREADS=1
5553
echo UPLOAD_FILE=cutter-deps-qt-macos-${{ matrix.arch }}.tar.gz >> $GITHUB_ENV
5654
echo UPLOAD_ASSET_TYPE=application/gzip >> $GITHUB_ENV
57-
- name: build linux
55+
- name: build linux outputs
5856
if: contains(matrix.os, 'ubuntu')
5957
run: |
60-
sudo apt-get install libxcb1-dev libxkbcommon-dev libxkbcommon-x11-dev libgtk-3-dev libgl1-mesa-dev libglu1-mesa-dev libxcb-*-dev
58+
sudo apt-get update
59+
sudo apt-get install \
60+
libxcb1-dev \
61+
libxkbcommon-dev \
62+
libxkbcommon-x11-dev \
63+
libgtk-3-dev \
64+
libgl1-mesa-dev \
65+
libglu1-mesa-dev \
66+
libxcb-*-dev \
67+
libclang-12-dev \
68+
llvm-12
69+
apt list --installed
70+
sudo apt remove llvm-10 clang-10
6171
make ARCH=${{ matrix.arch }}
6272
echo UPLOAD_FILE=cutter-deps-qt-linux-${{ matrix.arch }}.tar.gz >> $GITHUB_ENV
6373
echo UPLOAD_ASSET_TYPE=application/gzip >> $GITHUB_ENV

Makefile

Lines changed: 35 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ endif
2424
#BASE_URL=http://www.mirrorservice.org/sites/download.qt-project.org
2525
BASE_URL=https://download.qt.io
2626

27+
QT_VER_FULL=6.7.2
28+
QT_VER_SHORT=6.7
2729
ifeq (${PLATFORM},win)
28-
QT_SRC_FILE=qt-everywhere-opensource-src-5.15.5.zip
29-
QT_SRC_MD5=7f4ec67f41635ba338f505f09b68fe02
30-
QT_SRC_URL=${BASE_URL}/official_releases/qt/5.15/5.15.5/single/qt-everywhere-opensource-src-5.15.5.zip
30+
QT_SRC_FILE=qt-everywhere-src-${QT_VER_FULL}.zip
31+
QT_SRC_MD5=69c87bb306ab78b988fb69819c32f3de
32+
QT_SRC_URL=${BASE_URL}/official_releases/qt/${QT_VER_SHORT}/${QT_VER_FULL}/single/${QT_SRC_FILE}
3133
else
32-
QT_SRC_FILE=qt-everywhere-opensource-src-5.15.5.tar.xz
33-
QT_SRC_MD5=0fbcde36556a366df8ecf24a7ea1f7ec
34-
QT_SRC_URL=${BASE_URL}/official_releases/qt/5.15/5.15.5/single/qt-everywhere-opensource-src-5.15.5.tar.xz
34+
QT_SRC_FILE=qt-everywhere-src-${QT_VER_FULL}.tar.xz
35+
QT_SRC_MD5=06d35b47349c7c0a45710daad359e07b
36+
QT_SRC_URL=${BASE_URL}/official_releases/qt/${QT_VER_SHORT}/${QT_VER_FULL}/single/${QT_SRC_FILE}
3537
endif
3638

37-
QT_SRC_DIR=qt-everywhere-src-5.15.5
39+
QT_SRC_DIR=qt-everywhere-src-${QT_VER_FULL}
3840
QT_BUILD_DIR=${QT_SRC_DIR}/build
3941
QT_PREFIX=${ROOT_DIR}/qt
4042

41-
JOM_URL=https://download.qt.io/official_releases/jom/jom.zip
42-
4343
ifeq (${PLATFORM},linux)
4444
PLATFORM_QT_CONFIGURE=configure
4545
#-ccache
@@ -123,23 +123,8 @@ define download_extract
123123
$(call extract,$2)
124124
endef
125125

126-
ifeq (${PLATFORM},win)
127-
PLATFORM_QT_DEPS=jom
128-
PLATFORM_CLEAN_DEPS=clean-jom
129-
130-
jom:
131-
mkdir -p jom
132-
curl -fL "${JOM_URL}" -o jom/jom.zip
133-
cd jom && 7z x jom.zip
134-
135-
.PHONY: clean-jom
136-
clean-jom:
137-
rm -rf jom
138-
139-
else
140126
PLATFORM_QT_DEPS=
141127
PLATFORM_CLEAN_DEPS=
142-
endif
143128

144129
.PHONY: clean
145130
clean: clean-qt ${PLATFORM_CLEAN_DEPS}
@@ -155,9 +140,6 @@ ${QT_SRC_DIR}:
155140
@echo ""
156141
$(call download_extract,${QT_SRC_URL},${QT_SRC_FILE},${QT_SRC_MD5})
157142
# Add patches here if required
158-
patch ${QT_SRC_DIR}/qtbase/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h qiosurfacegraphicsbuffer.h.patch
159-
# https://github.com/macports/macports-ports/blob/d2a7c094acba41c84dbe792480f6a1b32371d5e7/aqua/qt5/Portfile#L1057-L1059
160-
cd ${QT_SRC_DIR}/qtbase && patch -p0 < ../../patch-qmake-dont-hard-code-x86_64-as-the-architecture-when-using-qmake.diff
161143

162144
.PHONY: src
163145
src: ${QT_SRC_DIR}
@@ -169,6 +151,7 @@ qt: ${QT_SRC_DIR} ${PLATFORM_QT_DEPS}
169151
@echo "#########################"
170152
@echo ""
171153

154+
# -nomake tools
172155
mkdir -p "${QT_BUILD_DIR}"
173156
cd "${QT_BUILD_DIR}" && \
174157
../${PLATFORM_QT_CONFIGURE} \
@@ -185,47 +168,52 @@ qt: ${QT_SRC_DIR} ${PLATFORM_QT_DEPS}
185168
-no-sql-oci \
186169
-no-sql-odbc \
187170
-no-sql-psql \
188-
-no-sql-sqlite2 \
189171
-no-sql-sqlite \
190-
-no-sql-tds \
172+
-no-feature-assistant \
173+
-no-feature-designer \
191174
-nomake tests \
192175
-nomake examples \
193-
-nomake tools \
194-
-skip qtwebengine \
195176
-skip qt3d \
196-
-skip qtcanvas3d \
177+
-skip qtactiveqt \
197178
-skip qtcharts \
179+
-skip qtcoap \
198180
-skip qtconnectivity \
181+
-skip qtdatavis3d \
199182
-skip qtdeclarative \
200183
-skip qtdoc \
201-
-skip qtscript \
202-
-skip qtdatavis3d \
203-
-skip qtgamepad \
184+
-skip qtgraphs \
185+
-skip qtgrpc \
186+
-skip qthttpserver \
187+
-skip qtlanguageserver \
204188
-skip qtlocation \
205-
-skip qtgraphicaleffects \
189+
-skip qtlottie \
190+
-skip qtmqtt \
206191
-skip qtmultimedia \
207-
-skip qtpurchasing \
192+
-skip qtnetworkauth \
193+
-skip qtopcua \
194+
-skip qtpositioning \
195+
-skip qtquick3d \
196+
-skip qtquick3dphysics \
197+
-skip qtquickeffectmaker \
198+
-skip qtquicktimeline \
199+
-skip qtremoteobjects \
208200
-skip qtscxml \
209201
-skip qtsensors \
210202
-skip qtserialbus \
211203
-skip qtserialport \
204+
-skip qtshadertools \
212205
-skip qtspeech \
213206
-skip qttranslations \
214207
-skip qtvirtualkeyboard \
215-
-skip qtwebglplugin \
208+
-skip qtwebchannel \
209+
-skip qtwebengine \
216210
-skip qtwebsockets \
217211
-skip qtwebview \
218-
-skip qtquickcontrols \
219-
-skip qtquickcontrols2 \
212+
-DCMAKE_WrapClang_FOUND=false \
220213
${PLATFORM_QT_OPTIONS}
221214

222-
ifeq (${PLATFORM},win)
223-
cd "${QT_BUILD_DIR}" && "${ROOT_DIR}/jom/jom.exe" -J ${BUILD_THREADS}
224-
cd "${QT_BUILD_DIR}" && "${ROOT_DIR}/jom/jom.exe" install
225-
else
226-
cd "${QT_BUILD_DIR}" && make -j${BUILD_THREADS} | awk "NR%10==1" # Travis doesn't like too much and too little output
227-
cd "${QT_BUILD_DIR}" && make install
228-
endif
215+
cmake --build "${QT_BUILD_DIR}" -j ${BUILD_THREADS}
216+
cmake --install "${QT_BUILD_DIR}"
229217

230218
ifeq (${PLATFORM},macos)
231219
cd "${QT_PREFIX}/include" && \

build_windows.ps1

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,19 @@ function DownloadAndCheckFile() {
6868

6969
SetupVsEnv
7070

71-
$version_base = "5.15"
72-
$version_full = "5.15.2"
71+
$version_base = "6.7"
72+
$version_full = "6.7.2"
7373
#$url = "https://download.qt.io/official_releases/qt/$version_base/$version_full/single/qt-everywhere-src-$version_full.zip"
7474
$url = "http://master.qt.io/archive/qt/$version_base/$version_full/single/qt-everywhere-src-$version_full.zip"
7575
$output = "qt-everywhere-src-$version_full.zip"
76-
$hash_expected = "6c5d37aa96f937eb59fd4e9ce5ec97f45fbf2b5de138b086bdeff782ec661733"
76+
$hash_expected = "e71c1f1b453b2b5a34173307d2ba9d35d3383e9727fbc34dc7eef189f351bca5"
7777
$QT_SRC_DIR = "qt-everywhere-src-$version_full"
7878
$qt_build_dir = "$QT_SRC_DIR/build"
7979
$QT_PREFIX = "$PSScriptRoot/qt"
8080
$BUILD_THREADS = 3
8181
$PACKAGE_FILE = "cutter-deps-qt-win-x86_64.tar.gz"
8282

8383

84-
# https://download.qt.io/official_releases/jom/jom.zip
85-
$jom_url = "http://master.qt.io/official_releases/jom/jom_1_1_3.zip"
86-
$jom_archive = "jom.zip"
87-
$jom_hash = "128fdd846fe24f8594eed37d1d8929a0ea78df563537c0c1b1861a635013fff8"
88-
89-
9084
DownloadAndCheckFile $url $output $hash_expected
9185

9286
Write-Output "File hash correct"
@@ -126,31 +120,23 @@ if (-not $?) {
126120
Fatal-Error "Failed to extract source"
127121
}
128122

129-
DownloadAndCheckFile $jom_url $jom_archive $jom_hash
130-
131-
Write-Output "Extracting jom"
132-
7z.exe x -bt -aos -bsp1 -ojom "$jom_archive"
133-
if (-not $?) {
134-
Fatal-Error "Failed to extract jom"
135-
}
136-
137123
Write-Output "Building Qt"
138124
New-Item -Path . -Name $qt_build_dir -ItemType Directory
139125
Write-Output "build dir '$qt_build_dir'"
140126
Set-Location -Path $qt_build_dir
141127
Write-Output "Current dir"
142128
Get-Location
143-
cmd /c "..\configure.bat -prefix `"${QT_PREFIX}`" -opensource -confirm-license -release -qt-libpng -qt-libjpeg -schannel -no-feature-cups -no-feature-icu -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-sqlite -no-sql-tds -nomake tests -nomake examples -nomake tools -skip qtwebengine -skip qt3d -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdeclarative -skip qtdoc -skip qtscript -skip qtdatavis3d -skip qtgamepad -skip qtlocation -skip qtgraphicaleffects -skip qtmultimedia -skip qtpurchasing -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtquickcontrols -skip qtquickcontrols2 -skip qtwayland -skip qtmacextras -skip qtx11extras 2>&1"
129+
cmd /c "..\configure.bat -prefix `"${QT_PREFIX}`" -opensource -confirm-license -release -qt-libpng -qt-libjpeg -no-feature-cups -no-feature-icu -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-feature-assistant -no-feature-clang -no-feature-designer -nomake tests -nomake examples -skip qt3d -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgrpc -skip qtgraphs -skip qthttpserver -skip qtlanguageserver -skip qtlocation -skip qtlottie -skip qtmqtt -skip qtmultimedia -skip qtnetworkauth -skip qtopcua -skip qtpositioning -skip qtquick3d -skip qtquick3dphysics -skip qtquickeffectmaker -skip qtquicktimeline -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtshadertools -skip qtspeech -skip qttranslations -skip qtvirtualkeyboard -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwayland -skip qtmacextras -skip qtx11extras 2>&1"
144130
if (-not $?) {
145131
Fatal-Error "Failed to configure qt"
146132
}
147133

148134
Write-Output "Running jom"
149-
cmd /c "`"$PSScriptRoot/jom/jom.exe`" -J $BUILD_THREADS 2>&1"
135+
cmd /c "cmake --build . --parallel"
150136
if (-not $?) {
151137
Fatal-Error "Qt compilation failed"
152138
}
153-
cmd /c "`"$PSScriptRoot/jom/jom.exe`" install 2>&1"
139+
cmd /c "cmake --install ."
154140
if (-not $?) {
155141
Fatal-Error "Qt file installation failed"
156142
}

0 commit comments

Comments
 (0)