From f877419c436c9029f9621cd3d6715c9cd56e10d5 Mon Sep 17 00:00:00 2001 From: vasilito Date: Thu, 2 Jul 2026 18:31:00 +0300 Subject: [PATCH] qt modules(0.2.5): disable PCH for cross-compile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add CMAKE_DISABLE_PRECOMPILE_HEADERS=ON to qtdeclarative, qtwayland, and qt6-sensors — same cross-compiler PCH issue as qtshadertools. --- local/recipes/qt/qt6-sensors/recipe.toml | 1 + local/recipes/qt/qtdeclarative/recipe.toml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/local/recipes/qt/qt6-sensors/recipe.toml b/local/recipes/qt/qt6-sensors/recipe.toml index fae6e41556..3dc43e9939 100644 --- a/local/recipes/qt/qt6-sensors/recipe.toml +++ b/local/recipes/qt/qt6-sensors/recipe.toml @@ -33,6 +33,7 @@ cmake "${COOKBOOK_SOURCE}" \ -DBUILD_EXAMPLES=OFF \ -DFEATURE_sensorfw=OFF \ -DQT_GENERATE_SBOM=OFF \ + -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON \ -Wno-dev cmake --build . -j${COOKBOOK_MAKE_JOBS} diff --git a/local/recipes/qt/qtdeclarative/recipe.toml b/local/recipes/qt/qtdeclarative/recipe.toml index 7befd883b7..ce6387e48a 100644 --- a/local/recipes/qt/qtdeclarative/recipe.toml +++ b/local/recipes/qt/qtdeclarative/recipe.toml @@ -51,6 +51,7 @@ if [ ! -d "${HOST_BUILD}/lib/cmake/Qt6Svg" ]; then -DQT_BUILD_EXAMPLES=OFF \ -DQT_BUILD_TESTS=OFF \ -DQT_GENERATE_SBOM=OFF \ + -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON \ -Wno-dev cmake --build "${HOST_QTSVG_BUILD}" -j"${COOKBOOK_MAKE_JOBS}" cmake --install "${HOST_QTSVG_BUILD}" --prefix "${HOST_BUILD}" @@ -86,6 +87,7 @@ if [ ! -f "${HOST_BUILD}/bin/qmlcachegen" ] || [ ! -f "${HOST_BUILD}/bin/qmlaots -DQT_BUILD_EXAMPLES=OFF \ -DQT_BUILD_TESTS=OFF \ -DQT_GENERATE_SBOM=OFF \ + -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON \ -Wno-dev cmake --build "${DECL_HOST}" --target qmllint qmlimportscanner qmltyperegistrar qmlaotstats svgtoqml -j"${COOKBOOK_MAKE_JOBS}" || true # Generate jsroot.qmltypes needed by qmlcachegen using the host-built qmltyperegistrar. @@ -232,6 +234,7 @@ cmake "${COOKBOOK_SOURCE}" \ -DQT_BUILD_EXAMPLES=OFF \ -DQT_BUILD_TESTS=OFF \ -DQT_GENERATE_SBOM=OFF \ + -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON \ -DQT_FEATURE_qml_jit=OFF \ -DQT_FEATURE_ssl=OFF \ -DQT_FEATURE_network=OFF \