qtutilities: fix cross build qt6-tools

This commit is contained in:
Đoàn Trần Công Danh 2025-08-31 11:30:51 +07:00
parent f6094c88cb
commit 180fa6e3e5
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,12 @@
--- a/cmake/modules/QtConfig.cmake
+++ b/cmake/modules/QtConfig.cmake
@@ -495,6 +495,9 @@ if (ENABLE_QT_TRANSLATIONS AND TS_FILES)
set(APP_SPECIFIC_QT_TRANSLATIONS_AVAILABLE YES)
# require the LinguistTools module (not adding it to QT_MODULES because we don't link against it)
+ if ("${QT_PACKAGE_PREFIX}" STREQUAL "Qt6")
+ find_package(Qt6 OPTIONAL_COMPONENTS Linguist CONFIG)
+ endif()
find_package("${QT_LINGUIST_TOOLS_PACKAGE}")
if (NOT "${${QT_LINGUIST_TOOLS_PACKAGE}_FOUND}" AND QT_HOST_PATH)
# find the module within the host path when set (required for cross compilation with Qt 6 as the module is absent in

View file

@ -1,7 +1,7 @@
# Template file for 'qtutilities'
pkgname=qtutilities
version=6.18.0
revision=1
revision=2
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON -DQT_PACKAGE_PREFIX=Qt6"
hostmakedepends="qt6-base qt6-tools"