From 7c1627d6c0c5800c33bfe533fdc3901e2114085f Mon Sep 17 00:00:00 2001 From: vasilito Date: Sun, 2 Aug 2026 13:25:13 +0300 Subject: [PATCH] qtdeclarative: define QT_FEATURE_quick_sprite (fixes QtQuick #if div-by-zero) quick_sprite was the one QtQuick feature missing from qtquick-config_p.h (10 others defined), so any consumer including the private scenegraph headers hit '#if QT_CONFIG(quick_sprite)' -> 1/QT_FEATURE_quick_sprite with the macro undefined -> 'division by zero in #if'. This blocked qt5compat's GraphicalEffects QML module (and would block every QtQuick-based QML module across the Plasma stack). Enable -DQT_FEATURE_quick_sprite=ON alongside the other quick_* features. --- local/recipes/qt/qtdeclarative/recipe.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/local/recipes/qt/qtdeclarative/recipe.toml b/local/recipes/qt/qtdeclarative/recipe.toml index f585fab976..80c926f3f2 100644 --- a/local/recipes/qt/qtdeclarative/recipe.toml +++ b/local/recipes/qt/qtdeclarative/recipe.toml @@ -266,6 +266,7 @@ cmake "${COOKBOOK_SOURCE}" \ -DQT_FEATURE_quick_shadereffect=ON \ -DQT_FEATURE_quick_draganddrop=ON \ -DQT_FEATURE_quick_controls2=ON \ + -DQT_FEATURE_quick_sprite=ON \ -Wno-dev cmake --build . --target Qml Quick QuickWidgets QmlModels QmlWorkerScript QmlIntegration LabsSettings QuickControls2 QuickTemplates2 QuickVectorImageGeneratorPrivate QuickVectorImage QuickVectorImageHelpers -j${COOKBOOK_MAKE_JOBS}