From 2264b6855308a2b9c62f05c5dde7d2b4bcc89e7a Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 17 Nov 2025 22:37:54 +0100 Subject: [PATCH] Split client/server ffmpeg dependencies --- CMakeLists.txt | 4 ++-- client/CMakeLists.txt | 2 +- server/encoder/ffmpeg/ffmpeg_helper.cpp | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fcc863e3..c3b0ea29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,7 +114,7 @@ if (WIVRN_BUILD_SERVER) endif() if (WIVRN_USE_VAAPI) - pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale libavfilter) + pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil) pkg_check_modules(LIBDRM REQUIRED IMPORTED_TARGET libdrm) endif() @@ -200,7 +200,7 @@ if (WIVRN_BUILD_CLIENT) endif() if (WIVRN_BUILD_CLIENT AND NOT ANDROID) - pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale libavfilter) + pkg_check_modules(LIBAV_CLIENT REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale) find_package(Fontconfig REQUIRED) if (WIVRN_USE_SYSTEM_OPENXR) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 63f4ab3d..1926af20 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -81,7 +81,7 @@ else() target_link_libraries(wivrn openxr_loader) endif() - target_link_libraries(wivrn PkgConfig::LIBAV Fontconfig::Fontconfig CURL::libcurl) + target_link_libraries(wivrn PkgConfig::LIBAV_CLIENT Fontconfig::Fontconfig CURL::libcurl) file(GLOB PLATFORM_SOURCE CONFIGURE_DEPENDS "decoder/ffmpeg/*.cpp") diff --git a/server/encoder/ffmpeg/ffmpeg_helper.cpp b/server/encoder/ffmpeg/ffmpeg_helper.cpp index 93291d7d..abe8dd74 100644 --- a/server/encoder/ffmpeg/ffmpeg_helper.cpp +++ b/server/encoder/ffmpeg/ffmpeg_helper.cpp @@ -24,7 +24,6 @@ extern "C" { #include -#include #include #include }