Skip to content

Commit 180fa6e

Browse files
committed
qtutilities: fix cross build qt6-tools
1 parent f6094c8 commit 180fa6e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--- a/cmake/modules/QtConfig.cmake
2+
+++ b/cmake/modules/QtConfig.cmake
3+
@@ -495,6 +495,9 @@ if (ENABLE_QT_TRANSLATIONS AND TS_FILES)
4+
set(APP_SPECIFIC_QT_TRANSLATIONS_AVAILABLE YES)
5+
6+
# require the LinguistTools module (not adding it to QT_MODULES because we don't link against it)
7+
+ if ("${QT_PACKAGE_PREFIX}" STREQUAL "Qt6")
8+
+ find_package(Qt6 OPTIONAL_COMPONENTS Linguist CONFIG)
9+
+ endif()
10+
find_package("${QT_LINGUIST_TOOLS_PACKAGE}")
11+
if (NOT "${${QT_LINGUIST_TOOLS_PACKAGE}_FOUND}" AND QT_HOST_PATH)
12+
# find the module within the host path when set (required for cross compilation with Qt 6 as the module is absent in

srcpkgs/qtutilities/template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Template file for 'qtutilities'
22
pkgname=qtutilities
33
version=6.18.0
4-
revision=1
4+
revision=2
55
build_style=cmake
66
configure_args="-DBUILD_SHARED_LIBS=ON -DQT_PACKAGE_PREFIX=Qt6"
77
hostmakedepends="qt6-base qt6-tools"

0 commit comments

Comments
 (0)