diff --git a/local/recipes/qt/qtbase/recipe.toml b/local/recipes/qt/qtbase/recipe.toml index c53313c7e3..e825ac5c45 100644 --- a/local/recipes/qt/qtbase/recipe.toml +++ b/local/recipes/qt/qtbase/recipe.toml @@ -221,6 +221,12 @@ if [ ! -f "${HOST_BUILD}/libexec/moc" ] || [ ! -f "${HOST_STAMP}" ]; then -DFEATURE_wayland=ON \ -DFEATURE_qtwaylandscanner=ON \ -Wno-dev + # CMake ninja generator may not create .d dependency directories + # before the first compilation pass. Pre-create them to avoid + # "fatal error: opening dependency file ... No such file or directory". + find "${HOST_QTBASE_BUILD}" -name "*.dir" -type d 2>/dev/null | while read dir; do + test -d "$dir" || mkdir -p "$dir" + done ( cd "${HOST_QTBASE_BUILD}" env -i \