PR #20399 opened by Stephane Cerveau (dabrain34) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20399 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20399.patch
This patch allows to use pkgconfig cflags for vulkan in check_cpp_condition as the vulkan sdk might be installed in different place than system wide. See https://vulkan.lunarg.com/doc/sdk/latest/linux/getting_started.html >From 5db9bfeaf3b7e9672380fe05f464c07351c2711e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= <scerv...@igalia.com> Date: Fri, 29 Aug 2025 17:04:07 +0200 Subject: [PATCH] configure: provide vulkan cflags This patch allows to use pkgconfig cflags for vulkan in check_cpp_condition as the vulkan sdk might be installed in different place than system wide. See https://vulkan.lunarg.com/doc/sdk/latest/linux/getting_started.html --- configure | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 7ec4c3975b..9860d064e3 100755 --- a/configure +++ b/configure @@ -7527,18 +7527,18 @@ enabled vdpau && check_lib vdpau_x11 "vdpau/vdpau.h vdpau/vdpau_x11.h" vdp_device_create_x11 -lvdpau -lX11 if enabled_all vulkan vulkan_static; then - check_pkg_config vulkan "vulkan >= 1.3.277" "vulkan/vulkan.h" "defined VK_VERSION_1_3" || - check_lib vulkan "vulkan/vulkan.h" vkGetInstanceProcAddr -lvulkan + require_pkg_config vulkan "vulkan >= 1.3.277" "vulkan/vulkan.h" "defined VK_VERSION_1_3" || + check_lib vulkan "vulkan/vulkan.h" vkGetInstanceProcAddr -lvulkan $vulkan_cflags elif enabled vulkan; then - check_pkg_config_header_only vulkan "vulkan >= 1.3.277" "vulkan/vulkan.h" "defined VK_VERSION_1_3" || - check_cpp_condition vulkan "vulkan/vulkan.h" "defined(VK_VERSION_1_4) || (defined(VK_VERSION_1_3) && VK_HEADER_VERSION >= 277)" + require_pkg_config vulkan "vulkan >= 1.3.277" "vulkan/vulkan.h" vkCreateInstance || + check_cpp_condition vulkan "vulkan/vulkan.h" "defined(VK_VERSION_1_4) || (defined(VK_VERSION_1_3) && VK_HEADER_VERSION >= 277)" $vulkan_cflags fi if disabled vulkan; then disable libglslang libshaderc spirv_compiler else check_pkg_config_header_only vulkan_1_4 "vulkan >= 1.4.317" "vulkan/vulkan.h" "defined VK_VERSION_1_4" || - check_cpp_condition vulkan_1_4 "vulkan/vulkan.h" "defined(VK_VERSION_1_5) || (defined(VK_VERSION_1_4) && VK_HEADER_VERSION >= 317)" + check_cpp_condition vulkan_1_4 "vulkan/vulkan.h" "defined(VK_VERSION_1_5) || (defined(VK_VERSION_1_4) && VK_HEADER_VERSION >= 317)" $vulkan_cflags fi if enabled x86; then -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-le...@ffmpeg.org