From bcf2e31dc7b02092ffc19f4e493732efaf9f2eb9 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Thu, 19 Jun 2025 07:48:02 +0200 Subject: [PATCH] blender: fix vulkan library lookup On Windows the library is called vulkan-1: https://github.com/KhronosGroup/Vulkan-Loader/blob/dc6786e527cf8cefd244318f546b3b2ec26e84f4/loader/CMakeLists.txt#L387 --- .../0050-fix-vulkan-import-lib-lookup.patch | 37 +++++++++++++++++++ mingw-w64-blender/PKGBUILD | 5 ++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 mingw-w64-blender/0050-fix-vulkan-import-lib-lookup.patch diff --git a/mingw-w64-blender/0050-fix-vulkan-import-lib-lookup.patch b/mingw-w64-blender/0050-fix-vulkan-import-lib-lookup.patch new file mode 100644 index 0000000000..d52ec410f1 --- /dev/null +++ b/mingw-w64-blender/0050-fix-vulkan-import-lib-lookup.patch @@ -0,0 +1,37 @@ +--- blender-4.4.3/build_files/cmake/Modules/FindVulkan.cmake.orig 2025-06-19 07:40:37.158134800 +0200 ++++ blender-4.4.3/build_files/cmake/Modules/FindVulkan.cmake 2025-06-19 07:44:20.564818700 +0200 +@@ -34,15 +34,25 @@ + PATH_SUFFIXES + include + ) +- +-find_library(VULKAN_LIBRARY +- NAMES +- vulkan +- HINTS +- ${_vulkan_SEARCH_DIRS} +- PATH_SUFFIXES +- lib +-) ++if(WIN32) ++ find_library(VULKAN_LIBRARY ++ NAMES ++ vulkan-1 ++ HINTS ++ ${_vulkan_SEARCH_DIRS} ++ PATH_SUFFIXES ++ lib ++ ) ++else() ++ find_library(VULKAN_LIBRARY ++ NAMES ++ vulkan ++ HINTS ++ ${_vulkan_SEARCH_DIRS} ++ PATH_SUFFIXES ++ lib ++ ) ++endif() + + # handle the QUIETLY and REQUIRED arguments and set VULKAN_FOUND to TRUE if + # all listed variables are TRUE diff --git a/mingw-w64-blender/PKGBUILD b/mingw-w64-blender/PKGBUILD index a90c958bf1..7ef4802a9a 100644 --- a/mingw-w64-blender/PKGBUILD +++ b/mingw-w64-blender/PKGBUILD @@ -12,7 +12,7 @@ _realname=blender pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" pkgver=4.4.3 -pkgrel=2 +pkgrel=3 pkgdesc="A fully integrated 3D graphics creation suite (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -109,6 +109,7 @@ source=(https://download.blender.org/source/${_realname}-${pkgver}.tar.xz 0032-fix-finding-tbb.patch 0035-Enable-SSE2NEON-on-Windows-ARM.patch 0039-no-WRL-on-mingw-w64.patch + 0050-fix-vulkan-import-lib-lookup.patch f4ad7267342bb4eb46bc6d384f4a28d10d251978.patch) sha256sums=('99ecdef24ece14084016ee47c756eeb2fc8a09c8487a0296b45a117224dc5ca7' 'f5765c9a5fc48b67a3eafde91dd6205e9979da0e0b582f6164b320403ef4cbf9' @@ -136,6 +137,7 @@ sha256sums=('99ecdef24ece14084016ee47c756eeb2fc8a09c8487a0296b45a117224dc5ca7' '2e0a36de42e2741122e7ab5e8895508a71d0b0db460d19013ab2424d29b52553' '8e8e8fc235ecccdacf775e30b7bffcf67749d78e1961710a48d40d06c7a12702' '4f501f1dea6a6c09d1548f45d4d0b19a757170ab9a3396ce125fa62949c4e2f9' + '74abe05319d5f385e4f3e1206543613237ce8dfb7f6b8dd14bc73c84831f1e4e' 'c5e205e23b56185202cdf7bd98184812ad10e8b124dbb2ceae8429d50339ecf8') #options=(debug) @@ -177,6 +179,7 @@ prepare() { 0032-fix-finding-tbb.patch \ 0035-Enable-SSE2NEON-on-Windows-ARM.patch \ 0039-no-WRL-on-mingw-w64.patch \ + 0050-fix-vulkan-import-lib-lookup.patch \ f4ad7267342bb4eb46bc6d384f4a28d10d251978.patch if check_option "debug" "y"; then